Class SceneAnimationWindow
Scene Animation window allows to view and edit SceneAnimation asset. Note: it uses ClonedAssetEditorWindowBase which is creating cloned asset to edit/preview.
Inheritance
Namespace: FlaxEditor.Windows.Assets
Assembly: FlaxEngine.CSharp.dll
Syntax
public sealed class SceneAnimationWindow : ClonedAssetEditorWindowBase<SceneAnimation>, IComparable, IDrawable, IEditable, IContentItemOwner
Constructors
SceneAnimationWindow(Editor, AssetItem)
Declaration
public SceneAnimationWindow(Editor editor, AssetItem item)
Parameters
Editor
editor
|
FlaxEditor.Content.AssetItem
item
|
Properties
Timeline
Gets the timeline editor.
Declaration
public SceneAnimationTimeline Timeline { get; }
Property Value
SceneAnimationTimeline
|
Undo
Gets the undo history context for this window.
Declaration
public Undo Undo { get; }
Property Value
Undo
|
UseLayoutData
Gets a value indicating whether window uses custom layout data.
Declaration
public override bool UseLayoutData { get; }
Property Value
System.Boolean
|
Overrides
Methods
OnAssetLinked()
Called when asset gets linked and window can setup UI for it.
Declaration
protected override void OnAssetLinked()
Overrides
OnDestroy()
Method called when managed instance should be destroyed
Declaration
public override void OnDestroy()
Overrides
OnEditorStateChanged()
Called when Editor state gets changed.
Declaration
public override void OnEditorStateChanged()
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
OnPlayBegin()
Called when Editor is entering play mode.
Declaration
public override void OnPlayBegin()
Overrides
OnPlayEnd()
Called when Editor leaves the play mode.
Declaration
public override void OnPlayEnd()
Overrides
OnSceneLoaded(Scene, Guid)
Fired when scene gets loaded
Declaration
public override void OnSceneLoaded(Scene scene, Guid sceneId)
Parameters
Scene
scene
The scene object. It may be null! |
System.Guid
sceneId
The scene ID. |
Overrides
OnSceneUnloaded(Scene, Guid)
Fired when scene gets unloaded
Declaration
public override void OnSceneUnloaded(Scene scene, Guid sceneId)
Parameters
Scene
scene
The scene object. It may be null! |
System.Guid
sceneId
The scene ID. |
Overrides
OnSceneUnloading(Scene, Guid)
Fired when scene gets unloading
Declaration
public override void OnSceneUnloading(Scene scene, Guid sceneId)
Parameters
Scene
scene
The scene object. It may be null! |
System.Guid
sceneId
The scene ID. |
Overrides
RefreshTempAsset()
Refreshes temporary asset to see changes live when editing the timeline.
Declaration
public bool RefreshTempAsset()
Returns
System.Boolean
True if cannot refresh it, otherwise false. |
Save()
Tries to save asset changes if it has been edited.
Declaration
public override void Save()
Overrides
UnlinkItem()
Unlinks the item. Removes reference to it and unbinds all events.
Declaration
protected override void UnlinkItem()
Overrides
Update(Single)
Perform control update and all its children
Declaration
public override void Update(float deltaTime)
Parameters
System.Single
deltaTime
Delta time in seconds |
Overrides
UpdateToolstrip()
Updates the toolstrip buttons and other controls. Called after some window events.
Declaration
protected override void UpdateToolstrip()