Search Results for

    Show / Hide Table of Contents

    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
    ListValueContainer
    ScriptsEditor.ScriptsContainer
    Inherited Members
    ListValueContainer.Index
    ListValueContainer.Refresh(ValueContainer)
    ListValueContainer.Set(ValueContainer, Object)
    ListValueContainer.Set(ValueContainer, ValueContainer)
    ListValueContainer.Set(ValueContainer)
    ListValueContainer.GetAttributes()
    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

    Overrides
    ListValueContainer.RefreshReferenceValue(Object)

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat