Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by cookie_time · Aug 26, 2014 at 02:22 PM · particlestimescalespeed upfaster

Unscaled Time for particle system?

Hi there,

I'm making a jump&run game that could potentially go on forever, so I want to gradually increase the speed. To do that, I simply increase Time.timeScale (but not further than to 1.5, after that it gets impossible). The game starts with a timeScale of 1 and all the animations and particle systems where created to look good at that scale. If the timeScale increases, the animations and particle systems get faster, too. Thing is, I don't want that. I already figured that if I set the Update Mode of an Animator to "Unscaled time" then the animation will always have the same speed.

Is there any equivalent for the particle systems? Or any other method for accelerating the game physics but not the animation and particles?

Thank in advance!

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image JustFun · Aug 26, 2014 at 04:21 PM 0
Share

Why just not speed up player only?

2 Replies

· Add your reply
  • Sort: 
avatar image
4

Answer by seantheyahn · May 30, 2015 at 11:29 AM

Attach this script to your particle system object: using UnityEngine; using System.Collections;

 public class UnscaledTimeParticle : MonoBehaviour
 {
     // Update is called once per frame
     void Update()
     {
         if (Time.timeScale < 0.01f)
         {
             particleSystem.Simulate(Time.unscaledDeltaTime, true, false);
         }
     }
 }
 
Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Nirvan · Jun 20, 2016 at 09:36 PM 0
Share

But this is veri slow, in my project it takes 25% of render time when two objects use it (but there are only UI elements)

avatar image
0

Answer by Warcel · Nov 01, 2014 at 05:54 AM

I used this and it worked perfectly on time scale 0: Every unscaled update you call particleSystem.Simulate()

Reference: http://docs.unity3d.com/ScriptReference/ParticleSystem.Simulate.html

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

How to emit particle or un-pause particle when timescale =0? 4 Answers

How to speed up simulation time without distorting results 0 Answers

Instantiate objects faster and faster over game time,Instantiate objects faster and faster over time 1 Answer

Speeding up the game while still making it run deterministically 0 Answers

Smoothly start and stop particles 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges