Search Results for

    Show / Hide Table of Contents

    Struct AssetRef<T>

    A resilient reference to a specific asset in DewResources database. Survives resource unloads and variant clears.

    Namespace: Global
    Assembly: Dew.Core.dll
    Syntax
    [Serializable]
    public struct AssetRef<T> where T : Object
    Type Parameters
    Name Description
    T

    Constructors

    AssetRef(T)

    Declaration
    public AssetRef(T v = null)
    Parameters
    Type Name Description
    T v

    Fields

    guid

    Declaration
    public string guid
    Field Value
    Type Description
    string

    isActor

    Declaration
    public bool isActor
    Field Value
    Type Description
    bool

    isMonoBehaviour

    Declaration
    public bool isMonoBehaviour
    Field Value
    Type Description
    bool

    typeAssemblyQualifiedName

    Declaration
    public string typeAssemblyQualifiedName
    Field Value
    Type Description
    string

    typeName

    Declaration
    public string typeName
    Field Value
    Type Description
    string

    Properties

    asset

    Declaration
    [JsonIgnore]
    public T asset { get; set; }
    Property Value
    Type Description
    T

    lightAsset

    Declaration
    [JsonIgnore]
    public T lightAsset { get; }
    Property Value
    Type Description
    T

    Methods

    ClearCache()

    Declaration
    public void ClearCache()

    Equals(AssetRef<T>)

    Declaration
    public bool Equals(AssetRef<T> other)
    Parameters
    Type Name Description
    AssetRef<T> other
    Returns
    Type Description
    bool

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    System.ValueType.Equals(object)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    System.ValueType.GetHashCode()

    GetType()

    Declaration
    [Obsolete("Using GetType() on AssetRefs is typically a mistake", true)]
    public Type GetType()
    Returns
    Type Description
    System.Type

    Operators

    operator ==(AssetRef<T>, AssetRef<T>)

    Declaration
    public static bool operator ==(AssetRef<T> left, AssetRef<T> right)
    Parameters
    Type Name Description
    AssetRef<T> left
    AssetRef<T> right
    Returns
    Type Description
    bool

    implicit operator AssetRef<T>(T)

    Declaration
    public static implicit operator AssetRef<T>(T t)
    Parameters
    Type Name Description
    T t
    Returns
    Type Description
    AssetRef<T>

    implicit operator T(AssetRef<T>)

    Declaration
    public static implicit operator T(AssetRef<T> assetRef)
    Parameters
    Type Name Description
    AssetRef<T> assetRef
    Returns
    Type Description
    T

    operator !=(AssetRef<T>, AssetRef<T>)

    Declaration
    public static bool operator !=(AssetRef<T> left, AssetRef<T> right)
    Parameters
    Type Name Description
    AssetRef<T> left
    AssetRef<T> right
    Returns
    Type Description
    bool
    In This Article
    Back to top Shape of Dreams API Documentation