Class ClonedAssetEditorWindowBase<T>
Generic base class for asset editors that modify cloned asset and update original asset on save.
Inheritance
System.Object
FlaxEngine.GUI.ScrollableControl
ClonedAssetEditorWindowBase<T>
Namespace: FlaxEditor.Windows.Assets
Assembly: FlaxEngine.CSharp.dll
Syntax
public abstract class ClonedAssetEditorWindowBase<T> : AssetEditorWindowBase<T>, IComparable, IDrawable, IEditable, IContentItemOwner where T : Asset
Type Parameters
T
Asset type. |
Constructors
ClonedAssetEditorWindowBase(Editor, AssetItem)
Declaration
protected ClonedAssetEditorWindowBase(Editor editor, AssetItem item)
Parameters
Editor
editor
|
FlaxEditor.Content.AssetItem
item
|
Properties
OriginalAsset
Gets the original asset. Note: Asset is the cloned asset for local editing. Use SaveToOriginal() to apply changes to the original asset.
Declaration
public T OriginalAsset { get; }
Property Value
T
|
Methods
LoadAsset()
Loads the asset.
Declaration
protected override T LoadAsset()
Returns
T
Loaded asset or null if cannot do it. |
Overrides
FlaxEditor.Windows.Assets.AssetEditorWindowBase<T>.LoadAsset()
SaveToOriginal()
Saves the copy of the asset to the original location. This action cannot be undone!
Declaration
protected virtual bool SaveToOriginal()
Returns
System.Boolean
True if failed, otherwise false. |