![]() |
Init(args)
Scripting Reference
|
Represents an object that can provide a value of a requested type to a GameObject client.
If a class derives from Object and implements IValueByTypeProviderAsync then Any<T> can wrap an instance of this class and return its value when Any<T>.GetValue<TClient> is called.
Public Member Functions | |
bool | TryGetFor< TValue > ([AllowNull] Component client, [NotNullWhen(true), MaybeNullWhen(false)] out TValue value) |
Gets the value of type TValue for the client . | |
bool | TryGetFor ([AllowNull] Component client, [DisallowNull] Type valueType, out object value) |
Gets the value of the given type for the client . | |
bool | HasValueFor< TValue > (Component client) |
Gets a value indicating whether this value provider can provide a value of type TValue for the client at this time. | |
bool | CanProvideValue< TValue > ([AllowNull] Component client) |
Gets a value indicating whether this value provider can potentially provide a value of the given type to the client at runtime. | |