docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct Observable<T>

    Represents an observable value of type T. Subscribers can be notified when the value changes.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    public struct Observable<T>
    Type Parameters
    Name Description
    T

    The type of the value.

    Constructors

    Observable(T)

    Constructor with value

    Declaration
    public Observable(T newValue)
    Parameters
    Type Name Description
    T newValue

    The new value to be assigned.

    Properties

    value

    The current value.

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

    Events

    onValueChanged

    Event that is triggered when the value changes.

    Declaration
    public event Action<T> onValueChanged
    Event Type
    Type Description
    Action<T>

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, T)
    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)