|
Init(args)
Scripting Reference
|
Represents an object that can provide a Value of type TValue on demand.
If a class derives from UnityEngine.Object and implements IValueProvider<T> then Any<T> can wrap an instance of this class and return its IValueProvider<T>.Value when Any<T>.Value is called.
| TValue | Type of the provided value. |
Public Member Functions | |
| new bool | HasValueFor (Component client) |
| Gets a value indicating whether this value provider can provide a value of type TValue for the client at this time. | |
| bool | TryGetFor ([AllowNull] Component client, [NotNullWhen(true), MaybeNullWhen(false)] out TValue value) |
| Gets the value of type TValue for the client . | |
Properties | |
| new TValue | Value [get] |
| Gets the value of type TValue provided by this object. | |
| object IValueProvider. | Value [get] |
| Gets the value of type TValue provided by this object. | |