Calling coroutines
- Last UpdatedJan 20, 2025
- 1 minute read
To invoke coroutines
-
At the beginning of the AnimationClip, setup a channel and keyframe to invoke the callChangeTargetCameraWithMovement coroutine
-
At the beginning of each AnimationClip segment (per procedure step), call the apm_crt_changeBlink coroutine to setup silhouette and fill visual for desired mesh objects.
-
At the end of the AnimationClip, call the apm_crt_resetBlink coroutine to reset the visual for any mesh objects previously showing silhouette and fill.
-
At the end of the AnimationClip, call the callChangeTargetCameraWithMovement coroutine to return the camera to the default overall / overview camera used when starting the application.
Commonly Used Coroutines and Animation approach
|
Coroutine Name |
Function |
|---|---|
|
callChangeTargetCameraWithMovement |
Changing camera from existing camera. With or without smooth transition |
|
apm_crt_changeBlink |
Set list of mesh objects to silhouette and fill with color defined in cfg_apm.xml |
|
apm_crt_resetBlink |
Resets any silhouette or fill mesh objects back to original state |