Class ObjectReferenceBase<T> | Asset Graph | 1.6.0-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class ObjectReferenceBase<T>

    Inheritance
    Object
    ObjectReferenceBase<T>
    AnimationReference
    AudioClipReference
    AudioMixerReference
    AvatarMaskReference
    CubemapReference
    FontReference
    GameObjectReference
    MaterialReference
    ObjectReference
    PhysicMaterialReference
    PhysicsMaterial2DReference
    RenderTextureReference
    ShaderReference
    SpriteReference
    TextureReference
    Namespace: UnityEngine.AssetGraph
    Syntax
    [Serializable]
    public class ObjectReferenceBase<T>
        where T : Object
    Type Parameters
    Name Description
    T

    Constructors

    ObjectReferenceBase()

    Declaration
    public ObjectReferenceBase()

    ObjectReferenceBase(T)

    Declaration
    public ObjectReferenceBase(T o)
    Parameters
    Type Name Description
    T o

    ObjectReferenceBase(ObjectReferenceBase<T>)

    Declaration
    public ObjectReferenceBase(ObjectReferenceBase<T> o)
    Parameters
    Type Name Description
    ObjectReferenceBase<T> o

    Properties

    AssetPath

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

    Empty

    Declaration
    public bool Empty { get; }
    Property Value
    Type Description
    Boolean

    Object

    Declaration
    public T Object { get; set; }
    Property Value
    Type Description
    T

    Methods

    Equals(Object)

    Declaration
    public override bool Equals(object rhs)
    Parameters
    Type Name Description
    Object rhs
    Returns
    Type Description
    Boolean
    Overrides
    Object.Equals(Object)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    Object.GetHashCode()

    Operators

    Equality(ObjectReferenceBase<T>, ObjectReferenceBase<T>)

    Declaration
    public static bool operator ==(ObjectReferenceBase<T> lhs, ObjectReferenceBase<T> rhs)
    Parameters
    Type Name Description
    ObjectReferenceBase<T> lhs
    ObjectReferenceBase<T> rhs
    Returns
    Type Description
    Boolean

    Inequality(ObjectReferenceBase<T>, ObjectReferenceBase<T>)

    Declaration
    public static bool operator !=(ObjectReferenceBase<T> lhs, ObjectReferenceBase<T> rhs)
    Parameters
    Type Name Description
    ObjectReferenceBase<T> lhs
    ObjectReferenceBase<T> rhs
    Returns
    Type Description
    Boolean
    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