Class ModelBaseWindow<TAsset, TWindow>
Editor window to view/modify ModelBase asset.
Inheritance
Namespace: FlaxEditor.Windows.Assets
Assembly: FlaxEngine.CSharp.dll
Syntax
public abstract class ModelBaseWindow<TAsset, TWindow> : AssetEditorWindowBase<TAsset>, IComparable, IDrawable, IEditable, IContentItemOwner where TAsset : ModelBase where TWindow : ModelBaseWindow<TAsset, TWindow>
Type Parameters
TAsset
|
TWindow
|
Constructors
ModelBaseWindow(Editor, AssetItem)
Declaration
protected ModelBaseWindow(Editor editor, AssetItem item)
Parameters
Editor
editor
|
FlaxEditor.Content.AssetItem
item
|
Fields
_highlightIndex
Declaration
protected int _highlightIndex
Field Value
System.Int32
|
_isolateIndex
Declaration
protected int _isolateIndex
Field Value
System.Int32
|
_refreshOnLODsLoaded
Declaration
protected bool _refreshOnLODsLoaded
Field Value
System.Boolean
|
_saveButton
Declaration
protected readonly ToolStripButton _saveButton
Field Value
FlaxEditor.GUI.ToolStripButton
|
_skipEffectsGuiEvents
Declaration
protected bool _skipEffectsGuiEvents
Field Value
System.Boolean
|
_split
Declaration
protected readonly SplitPanel _split
Field Value
FlaxEngine.GUI.SplitPanel
|
_tabs
Declaration
protected readonly Tabs _tabs
Field Value
FlaxEditor.GUI.Tabs.Tabs
|
Properties
UseLayoutData
Gets a value indicating whether window uses custom layout data.
Declaration
public override bool UseLayoutData { get; }
Property Value
System.Boolean
|
Overrides
Methods
OnAssetLoaded()
Called when asset gets loaded and window can setup UI for it.
Declaration
protected override void OnAssetLoaded()
Overrides
OnItemReimported(ContentItem)
Declaration
public override void OnItemReimported(ContentItem item)
Parameters
FlaxEditor.Content.ContentItem
item
|
Overrides
OnLayoutDeserialize()
Called when during windows layout deserialization if window has no layout data to load. Can be used to restore default UI layout.
Declaration
public override void OnLayoutDeserialize()
Overrides
OnLayoutDeserialize(XmlElement)
Called when during windows layout deserialization. Each window can use it to load custom interface data (eg. splitter position).
Declaration
public override void OnLayoutDeserialize(XmlElement node)
Parameters
System.Xml.XmlElement
node
The Xml document node. |
Overrides
OnLayoutSerialize(XmlWriter)
Called when during windows layout serialization. Each window can use it to store custom interface data (eg. splitter position).
Declaration
public override void OnLayoutSerialize(XmlWriter writer)
Parameters
System.Xml.XmlWriter
writer
The Xml writer. |
Overrides
UnlinkItem()
Unlinks the item. Removes reference to it and unbinds all events.
Declaration
protected override void UnlinkItem()
Overrides
UpdateToolstrip()
Updates the toolstrip buttons and other controls. Called after some window events.
Declaration
protected override void UpdateToolstrip()