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

◆ TryGetValue() [1/3]

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

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