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

◆ TryGetValue() [1/3]

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

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

This method can only be called from the main thread.

Parameters
valueWhen this method returns, contains the current value of the AnyGeneric<T> object, if it has been assigned one.

If T is the defining type of a global service or a scene service that is accessible to all clients, then contains the shared instance of that service.

Otherwise, contains the default value of T.

This parameter is passed uninitialized.

Returns

true if the AnyGeneric<T> object has a non-null value.

true if T is the defining type of a global service or a scene service that is accessible to all clients.

Otherwise, false.