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

◆ GetValue() [1/2]

T Sisus.Init.AnyGeneric< T >.GetValue ( [DisallowNull] ScriptableObject 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 scriptable object requesting the value, or null if the requester is unknown or not a component.
contextThe context from which the request is being made.
Returns
The value associated with the current AnyGeneric<T> object, if it has a value; otherwise, the default value of T.