Class ScriptsEditor.ScriptsContainer
Values container for the collection of the scripts. Helps with prefab linkage and reference value usage (uses Prefab Instance ID rather than index in array).
Inheritance
System.Object
FlaxEditor.CustomEditors.ValueContainer
ScriptsEditor.ScriptsContainer
Namespace: FlaxEditor.CustomEditors.Dedicated
Assembly: FlaxEngine.CSharp.dll
Syntax
public sealed class ScriptsContainer : ListValueContainer
Constructors
ScriptsContainer(ScriptType, Int32, ValueContainer)
Initializes a new instance of the ScriptsEditor.ScriptsContainer class.
Declaration
public ScriptsContainer(ScriptType elementType, int index, ValueContainer values)
Parameters
FlaxEditor.Scripting.ScriptType
elementType
Type of the collection elements (script type). |
System.Int32
index
The script index in the actor scripts collection. |
FlaxEditor.CustomEditors.ValueContainer
values
The collection values (scripts array). |
Properties
PrefabObjectId
Gets the prefab object identifier used by the container scripts. Empty if there is no valid linkage to the prefab object.
Declaration
public Guid PrefabObjectId { get; }
Property Value
System.Guid
|
Methods
RefreshReferenceValue(Object)
Declaration
public override void RefreshReferenceValue(object instanceValue)
Parameters
System.Object
instanceValue
|