Click or drag to resize

WaitForEvent Method (Double, ScriptReference)

Suspend coroutine until the script event fires or a timeout occurs.

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

Parameters

timeout
Type: SystemDouble
Timeout to wait for events to fire.
script
Type: Demo3D.VisualsScriptReference
Script event to wait for.

Return Value

Type: ITask
A task representing the wait for script event to fire.
See Also