Skip to main content

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

PropertyDescription
callbackOrderInterface property.
UserDataPathDirectory path for user data, which is set to Assets/Inworld/UserData by default.

API

FunctionDescriptionParameters
OnPreprocessBuildRemoves all Inworld logs to prevent them from being printed during runtime.report: For interface integration (not used here).
SendWebGetRequestSends 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.
DownloadCharacterAssetDownloads 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.
GetResponseRetrieves the actual UnityWebRequest in the callback.op: Asynchronous operation for sending web requests in the callback.
DrawDropDownRenders a drop-down field in the Editor GUI.currentItem: Selected item.
values: List of available selections.
callback: Callback function when an item is selected.