Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to make Particle Playground systems keep going even when global time scale is set to 0.
- Overwrite the SetTime function on line 1322 in PlaygroundC.cs to this:
- /// <summary>
- /// Updates the global time.
- /// </summary>
- public static void SetTime () {
- // Set time
- globalTime += (Time.realtimeSinceStartup-lastTimeUpdated)*globalTimescale;
- // Set delta time
- globalDeltaTime = globalTime-lastTimeUpdated;
- // Set interval stamp
- lastTimeUpdated = globalTime;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement