VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
IEnumerator AVR.Motion.AVR_MovementProvider.BlinkTeleport ( )
inlineprivate

This coroutine is exectued when a blink-movement (INSTANT) is performed.

Definition at line 122 of file AVR_MovementProvider.cs.

122  {
123  tp_in_progress = true; // Set active flag
124  CameraFadeEffect.StartEffect(); // Shut curtains
125  yield return new WaitWhile(()=>CameraFadeEffect.isBusy()); //
126  yield return new WaitForSeconds(fade_pause); // Pause
127  MoveRigToFeetLocation(destination); // Move rig to destination
128  CameraFadeEffect.EndEffect(); // Reopen curtains
129  yield return new WaitWhile(() => CameraFadeEffect.isBusy());//
130  tp_in_progress = false; // Reset flag
131  }
float fade_pause
When using FADE_COLOR or FADE_DASH, this determines the amount of time between fade-in and fade-out t...
abstract bool isBusy()
True if the effect is starting/started or ending but not yet ended.
AVR_Effect CameraFadeEffect
CameraFadeEffect used when teleportmode is FADE_COLOR or FADE_DASH.