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

◆ TryGetValue() [2/3]

bool Sisus.Init.Any< T >.TryGetValue ( [AllowNull] Component client,
Context context,
out T result )

Gets the value of the current Any<T> object if it has one.

If the underlying value is null and T is a global service or a scene service which is accessible to the client then gets the service.

Parameters
clientThe component requesting the value, or null if the requester is unknown or not a component.
contextThe context from which the request is being made.
resultWhen this method returns, contains the value associated with the current Any<T> object, if it has a value; otherwise, the default value of T. This parameter is passed uninitialized.
Returns
true if a valid underlying value has been assigned; otherwise, false.