docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Datum<T>

    ScriptableObject container class that holds a typed value. Can be referenced by multiple components in order to share the same set of data.

    Inheritance
    object
    Object
    ScriptableObject
    Datum<T>
    AnimationCurveDatum
    FloatDatum
    IntDatum
    StringDatum
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Unity.XR.CoreUtils.Datums
    Assembly: Unity.XR.CoreUtils.dll
    Syntax
    public abstract class Datum<T> : ScriptableObject
    Type Parameters
    Name Description
    T

    Value type held by this container.

    Properties

    BindableVariableReference

    Read-only bindable variable reference that can be used for subscribing to value changes when not set to read-only.

    Declaration
    public IReadOnlyBindableVariable<T> BindableVariableReference { get; }
    Property Value
    Type Description
    IReadOnlyBindableVariable<T>
    See Also
    DatumProperty<TValue, TDatum>

    Comments

    Comment that shows up in the Inspector window. Useful for explaining the purpose of the datum.

    Declaration
    public string Comments { get; set; }
    Property Value
    Type Description
    string
    See Also
    DatumProperty<TValue, TDatum>

    ReadOnly

    Controls whether the value in this datum is mutable or not.

    Declaration
    public bool ReadOnly { get; set; }
    Property Value
    Type Description
    bool
    See Also
    DatumProperty<TValue, TDatum>

    Value

    Accessor for internal value. Setter only works if value is not read-only.

    Declaration
    public T Value { get; set; }
    Property Value
    Type Description
    T
    See Also
    DatumProperty<TValue, TDatum>

    Methods

    OnEnable()

    This function is called when the object is loaded. Updates the value of the bindable variable reference.

    Declaration
    protected void OnEnable()
    See Also
    DatumProperty<TValue, TDatum>

    See Also

    DatumProperty<TValue, TDatum>
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)