Click or drag to resize

WaitFor Method (Double, ScriptReference)

Use ForEvent(Double, ScriptReference) instead.

Suspend coroutine until a given script event fires or there is a timeout.

Namespace:  Demo3D.Native
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public static ITask For(
	double timeout,
	ScriptReference script
)

Parameters

timeout
Type: SystemDouble
Timeout to wait for.
script
Type: Demo3D.VisualsScriptReference
Script event to suspend until it fires.

Return Value

Type: ITask
A task representing the wait for event or timeout.
See Also