JuanJSAR

Fix VRTK and LWRP/URP or HDRP

Jan 29th, 2020 (edited)
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. 1- Edit MomentProcessor.cs (VRTK\Dependencies\Zinnia.Unity\Runtime\Process\Moment) or (Packages\Zinnia.Unity\Runtime\Process\Moment)
  2.  
  3. 2- Starting at Line 4 add the following code
  4. using System.Collections;
  5.  
  6. 3- Starting at Line 60 make the following changes
  7. protected virtual void OnEnable() { StartCoroutine(ProcessWhile()); //SubscribeMoment(); }
  8. protected virtual void OnDisable() { //UnsubscribeMoment(); }
  9.  
  10. 4- Starting at Line 109 add the following code
  11. System.Collections.IEnumerator ProcessWhile() { while (true) { yield return new WaitForEndOfFrame(); Process(); } }
  12.  
  13. 5- Save.
  14.  
  15. 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