Class RuntimePrefabPropertyOverride | Unity Runtime Scene Serialization | 0.1.4-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class RuntimePrefabPropertyOverride

    Inheritance
    Object
    RuntimePrefabPropertyOverride
    RuntimePrefabPropertyOverride<TOverrideValue>
    RuntimePrefabPropertyOverrideList
    Namespace: Unity.RuntimeSceneSerialization.Prefabs
    Syntax
    [Serializable]
    public abstract class RuntimePrefabPropertyOverride

    Constructors

    RuntimePrefabPropertyOverride()

    Declaration
    protected RuntimePrefabPropertyOverride()

    RuntimePrefabPropertyOverride(String, String, Int32)

    Declaration
    protected RuntimePrefabPropertyOverride(string propertyPath, string transformPath, int componentIndex = -1)
    Parameters
    Type Name Description
    String propertyPath
    String transformPath
    Int32 componentIndex

    Fields

    m_ComponentIndex

    Declaration
    [SerializeField]
    protected int m_ComponentIndex
    Field Value
    Type Description
    Int32

    m_PropertyPath

    Declaration
    [SerializeField]
    protected string m_PropertyPath
    Field Value
    Type Description
    String

    m_TransformPath

    Declaration
    [SerializeField]
    protected string m_TransformPath
    Field Value
    Type Description
    String

    Properties

    ComponentIndex

    Declaration
    public int ComponentIndex { get; }
    Property Value
    Type Description
    Int32

    PropertyPath

    Declaration
    public string PropertyPath { get; }
    Property Value
    Type Description
    String

    TransformPath

    Declaration
    public string TransformPath { get; }
    Property Value
    Type Description
    String

    Methods

    ApplyOverride(Transform)

    Declaration
    public void ApplyOverride(Transform root)
    Parameters
    Type Name Description
    Transform root

    ApplyOverrideToTarget(Object)

    Declaration
    protected abstract void ApplyOverrideToTarget(Object target)
    Parameters
    Type Name Description
    Object target

    Create<TValue>(String, String, Int32, TValue)

    Declaration
    public static RuntimePrefabPropertyOverride Create<TValue>(string propertyPath, string transformPath, int componentIndex, TValue value)
    Parameters
    Type Name Description
    String propertyPath
    String transformPath
    Int32 componentIndex
    TValue value
    Returns
    Type Description
    RuntimePrefabPropertyOverride
    Type Parameters
    Name Description
    TValue

    Update<TValue>(RuntimePrefabPropertyOverride, TValue)

    Declaration
    public static void Update<TValue>(RuntimePrefabPropertyOverride override, TValue value)
    Parameters
    Type Name Description
    RuntimePrefabPropertyOverride override
    TValue value
    Type Parameters
    Name Description
    TValue
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023