Class ScriptsEditor
Custom editor for actor scripts collection.
Inheritance
System.Object
FlaxEditor.CustomEditors.CustomEditor
FlaxEditor.CustomEditors.SyncPointEditor
ScriptsEditor
Namespace: FlaxEditor.CustomEditors.Dedicated
Assembly: FlaxEngine.CSharp.dll
Syntax
public sealed class ScriptsEditor : SyncPointEditor
Constructors
ScriptsEditor()
Declaration
public ScriptsEditor()
Properties
UndoObjects
Declaration
public override IEnumerable<object> UndoObjects { get; }
Property Value
System.Collections.Generic.IEnumerable<System.Object>
|
Overrides
FlaxEditor.CustomEditors.SyncPointEditor.UndoObjects
Methods
add_ScriptDragChange(ScriptsEditor.ScriptDragDelegate)
Declaration
public void add_ScriptDragChange(ScriptsEditor.ScriptDragDelegate value)
Parameters
ScriptsEditor.ScriptDragDelegate
value
|
Deinitialize()
Declaration
protected override void Deinitialize()
Overrides
FlaxEditor.CustomEditors.SyncPointEditor.Deinitialize()
Initialize(LayoutElementsContainer)
Declaration
public override void Initialize(LayoutElementsContainer layout)
Parameters
FlaxEditor.CustomEditors.LayoutElementsContainer
layout
|
Overrides
FlaxEditor.CustomEditors.SyncPointEditor.Initialize(FlaxEditor.CustomEditors.LayoutElementsContainer)
OnScriptDragChange(Boolean, Script)
Called when script drag changes.
Declaration
public void OnScriptDragChange(bool start, Script script)
Parameters
System.Boolean
start
if set to |
Script
script
The target script. |
Refresh()
Declaration
public override void Refresh()
Overrides
FlaxEditor.CustomEditors.SyncPointEditor.Refresh()
remove_ScriptDragChange(ScriptsEditor.ScriptDragDelegate)
Declaration
public void remove_ScriptDragChange(ScriptsEditor.ScriptDragDelegate value)
Parameters
ScriptsEditor.ScriptDragDelegate
value
|
ReorderScript(Script, Int32)
Changes the script order (with undo).
Declaration
public void ReorderScript(Script script, int targetIndex)
Parameters
Script
script
The script to reorder. |
System.Int32
targetIndex
The target index to move script. |
Events
ScriptDragChange
Occurs when script drag changes (starts or ends).
Declaration
public event ScriptsEditor.ScriptDragDelegate ScriptDragChange
Event Type
ScriptsEditor.ScriptDragDelegate
|
Extension Methods
See Also
FlaxEditor.CustomEditors.CustomEditor