Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1- Edit MomentProcessor.cs (VRTK\Dependencies\Zinnia.Unity\Runtime\Process\Moment) or (Packages\Zinnia.Unity\Runtime\Process\Moment)
- 2- Starting at Line 4 add the following code
- using System.Collections;
- 3- Starting at Line 60 make the following changes
- protected virtual void OnEnable() { StartCoroutine(ProcessWhile()); //SubscribeMoment(); }
- protected virtual void OnDisable() { //UnsubscribeMoment(); }
- 4- Starting at Line 109 add the following code
- System.Collections.IEnumerator ProcessWhile() { while (true) { yield return new WaitForEndOfFrame(); Process(); } }
- 5- Save.
- This code came from the VRTK Slack Channel by J. Sebastian on May 28th in #general-help.
Add Comment
Please, Sign In to add comment