Class JsonAssetWindow
Editor window to view/modify JsonAsset asset.
Inheritance
System.Object
FlaxEngine.GUI.ScrollableControl
JsonAssetWindow
Namespace: FlaxEditor.Windows.Assets
Assembly: FlaxEngine.CSharp.dll
Syntax
public sealed class JsonAssetWindow : AssetEditorWindowBase<JsonAsset>, IComparable, IDrawable, IEditable, IContentItemOwner
Constructors
JsonAssetWindow(Editor, AssetItem)
Declaration
public JsonAssetWindow(Editor editor, AssetItem item)
Parameters
Editor
editor
|
FlaxEditor.Content.AssetItem
item
|
Properties
Instance
Gets the instance of the Json asset object that is being edited.
Declaration
public object Instance { get; }
Property Value
System.Object
|
Methods
OnAssetLoaded()
Called when asset gets loaded and window can setup UI for it.
Declaration
protected override void OnAssetLoaded()
Overrides
FlaxEditor.Windows.Assets.AssetEditorWindowBase<FlaxEngine.JsonAsset>.OnAssetLoaded()
OnAssetLoadFailed()
Called when asset fails to load and window can setup UI for it.
Declaration
protected override void OnAssetLoadFailed()
Overrides
FlaxEditor.Windows.Assets.AssetEditorWindowBase<FlaxEngine.JsonAsset>.OnAssetLoadFailed()
OnDestroy()
Method called when managed instance should be destroyed
Declaration
public override void OnDestroy()
Overrides
OnItemReimported(ContentItem)
Declaration
public override void OnItemReimported(ContentItem item)
Parameters
FlaxEditor.Content.ContentItem
item
|
Overrides
FlaxEditor.Windows.Assets.AssetEditorWindowBase<FlaxEngine.JsonAsset>.OnItemReimported(FlaxEditor.Content.ContentItem)
Save()
Tries to save asset changes if it has been edited.
Declaration
public override void Save()
Overrides
UpdateToolstrip()
Updates the toolstrip buttons and other controls. Called after some window events.
Declaration
protected override void UpdateToolstrip()