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

◆ TryGetValue() [3/3]

bool Sisus.Init.AnyGeneric< T >.TryGetValue ( Component client,
out T value )

Gets the value of the current AnyGeneric<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.

This method can only be called from the main thread.

Parameters
valueWhen this method returns, contains the value associated with the current AnyGeneric<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.