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
Syntaxpublic 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:
ITaskA task representing the wait for script event to fire.
See Also