Advertisement
polyfied

Untitled

Apr 17th, 2015
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. How to make Particle Playground systems keep going even when global time scale is set to 0.
  2. Overwrite the SetTime function on line 1322 in PlaygroundC.cs to this:
  3.  
  4. /// <summary>
  5. /// Updates the global time.
  6. /// </summary>
  7. public static void SetTime () {
  8.  
  9. // Set time
  10. globalTime += (Time.realtimeSinceStartup-lastTimeUpdated)*globalTimescale;
  11.  
  12. // Set delta time
  13. globalDeltaTime = globalTime-lastTimeUpdated;
  14.  
  15. // Set interval stamp
  16. lastTimeUpdated = globalTime;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement