Click or drag to resize

SingletonManagerWaitForT Method

Waits for a singleton on a coroutine

Namespace:  ImmerseSDK
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.5.0.0 (3.5.0.0)
Syntax
C#
public static UnityEngine.Coroutine WaitFor<T>(
	this UnityEngine.MonoBehaviour waitingBehaviour
)
where T : SingletonBehaviour

Parameters

waitingBehaviour
Type: UnityEngine.MonoBehaviour
The component that is waiting

Type Parameters

T
The type of the Singleton to wait for

Return Value

Type: UnityEngine.Coroutine
a UnityEngine.Coroutine that will wait for the specified Singleton to be ready. the Coroutine is created using the waitingBehaviour

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type UnityEngine.MonoBehaviour. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also