docs.unity3d.com
    Show / Hide Table of Contents

    Interface IUnityObjectReferenceValueProperty<TContainer>

    Provides access to unity object properties

    Namespace: Unity.RuntimeSceneSerialization
    Syntax
    public interface IUnityObjectReferenceValueProperty<TContainer>
    Type Parameters
    Name Description
    TContainer

    Properties

    OriginalValueType

    The original type of UnityObject, which is hidden by UnityObjectReference

    Declaration
    Type OriginalValueType { get; }
    Property Value
    Type Description
    Type

    Methods

    GetMemberValue(ref TContainer)

    Get the value directly without going through UnityObjectReference

    Declaration
    UnityEngine.Object GetMemberValue(ref TContainer container)
    Parameters
    Type Name Description
    TContainer container

    The container object on from which the property will be accessed

    Returns
    Type Description
    UnityEngine.Object

    The property value

    SetMemberValue(ref TContainer, UnityEngine.Object)

    Set the value directly without going through UnityObjectReference

    Declaration
    void SetMemberValue(ref TContainer container, UnityEngine.Object value)
    Parameters
    Type Name Description
    TContainer container

    The container object on which the property will be set

    UnityEngine.Object value

    The value to set

    In This Article
    • Properties
      • OriginalValueType
    • Methods
      • GetMemberValue(ref TContainer)
      • SetMemberValue(ref TContainer, UnityEngine.Object)
    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