Init(args)
Scripting Reference
Loading...
Searching...
No Matches

◆ GetValue() [2/2]

T Sisus.Init.Any< T >.GetValue ( [AllowNull] Component client,
Context context = Context::MainThread )

Gets the current value of this object.

If the underlying value is null and T is the defining type of a service that is accessible to the client , then returns the service.

If the underlying value is a IValueProvider<T>, then returns the value provided by it.

Parameters
clientThe component requesting the value, or null if the requester is unknown or is not a component.
contextThe context from which the request is being made.
Returns
The value associated with the current Any<T> object, if it has a value; otherwise, the default value of T.