Synced
AssetBrowserState
Section titled “AssetBrowserState”
- Stores asset browser navigation independently from global object selection.
Required contracts
Section titled “Required contracts”API: engine
Inherits: object
Project: Inno.Editor.Assets.ImGui
Declaration
Section titled “Declaration”public sealed class Inno.Editor.Assets.ImGui.AssetBrowserStateMembers
Section titled “Members”| Kind | Element | Description |
|---|---|---|
| Methods | AssetBrowserState.GetDirectory | Gets the last visited isolated directory for a navigation root. |
| Methods | AssetBrowserState.GetSelectedPath | Gets the selected asset path when the editor-wide target belongs to the Asset Browser. |
| Methods | AssetBrowserState.IsSelected | Checks whether the source entry belongs to the current asset selection. |
| Methods | AssetBrowserState.Select | Selects an asset path through the editor-wide selection state, or clears Asset selection. |
| Methods | AssetBrowserState.SetCurrentDirectory | Sets the current Asset Browser directory and infers its root from the isolated source identity. |
| Methods | AssetBrowserState.SetLocation | Changes the displayed source root and its isolated navigation directory. |
| Methods | AssetBrowserState.SetRoot | Switches the displayed root while preserving the last directory visited in each root. |
| Methods | AssetBrowserState.ToggleSelection | Adds or removes an asset from the current selection without retaining runtime asset objects. |
| Properties | AssetBrowserState.currentDirectory | Gets the current directory inside P:Inno.Editor.Assets.ImGui.AssetBrowserState.root. An empty value identifies that root’s overview. |
| Properties | AssetBrowserState.projectDirectory | Gets the most recently visited writable project directory, independently of the displayed root. |
| Properties | AssetBrowserState.root | Gets the root currently displayed by the Asset Browser. |