MachineLearning.FrameTiming
EnumTiming options for when MLComponent should start or stop running.
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.
Timing options for when MLComponent should start or stop running. Used with MLComponent.runScheduled().
For more information, see the MLComponent Scripting guide.
Index
Enumeration Members
Example
//@input Component.MLComponent mlComponent
script.mlComponent.runScheduled(true, MachineLearning.FrameTiming.Update, MachineLearning.FrameTiming.OnRender);
Enumeration Members
LateUpdate
LateUpdate:
number
Run in MLComponent LateUpdate, after all scripts update, but before they get LateUpdate.
None
None:
number
Only valid as an end timing. There is no exact time specified when MLComponent should finish its run.
OnRender
OnRender:
number
Run at a specific point during frame rendering.
Update
Update:
number
Run during MLComponent update, before script update.