InworldEditorUtil
Module: Inworld.Editor Namespace: Inworld.Editors Inherited from: IPreprocessBuildWithReport
This static class serves as an editor extension for handling various functions across different editor states. This class is called when the package is imported, or the Unity Editor is opened.
Properties
Property | Description |
---|---|
callbackOrder | Interface property. |
UserDataPath | Directory path for user data, which is set to Assets/Inworld/UserData by default. |
API
Function | Description | Parameters |
---|---|---|
OnPreprocessBuild | Removes all Inworld logs to prevent them from being printed during runtime. | report: For interface integration (not used here). |
SendWebGetRequest | Sends web requests within the editor. | url: URL for the web request. withToken: Checks if a token is required (token should be stored in InworldEditor.Token). callback: Callback function after the web request is completed or fails. |
DownloadCharacterAsset | Downloads assets and binds them to the character's CharacterAsset. | charFullName: Full name of the InworldCharacter. url: URL of the assets to download. callback: Callback function upon completion. |
GetResponse | Retrieves the actual UnityWebRequest in the callback. | op: Asynchronous operation for sending web requests in the callback. |
DrawDropDown | Renders a drop-down field in the Editor GUI. | currentItem: Selected item. values: List of available selections. callback: Callback function when an item is selected. |