Struct Observable<T>
Represents an observable value of type T. Subscribers can be notified when the value changes.
Inherited Members
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> |