• 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 questionsforunity · May 24, 2011 at 08:24 PM ·

Add slow motion

is there a way i can apply a slow motion effect to my game can someone plz help me?

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 FLASHDENMARK · May 24, 2011 at 08:31 PM 0
Share

What does the tag "Slow cool unity hard" mean?

4 Replies

· Add your reply
  • Sort: 
avatar image
6

Answer by Henrique Vilela · May 24, 2011 at 08:27 PM

Set the timescale.

 Time.timeScale = 0.5f; // 50% slower
Comment
Add comment · Show 2 · 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 questionsforunity · May 24, 2011 at 08:34 PM 0
Share

k thx hope it works

avatar image Graham-Dunnett ♦♦ · May 24, 2011 at 08:38 PM 1
Share

of course it's going to work. Read what is written on this page: http://unity3d.com/support/documentation/ScriptReference/Time-timeScale.html

avatar image
0

Answer by Rispat-Momit · Jun 21, 2013 at 10:01 AM

Here you can download a package of 2 slow motion scripts that I developed:http://lalespetros.com/Slow_motion_package.html

LP Unity creations

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
avatar image
0

Answer by indieDoroid · Jul 01, 2016 at 05:46 PM

A very kind soul on the internet gave the answer on here

http://stackoverflow.com/questions/24344082/how-to-get-smooth-slow-motion-in-unity3d

The gist of it is to add these two lines

   Time.timeScale = 0.5;
   Time.fixedDeltaTime = 0.02F * Time.timeScale;

The fixedDeltaTime is what causes the smoothness to play out. If for whatever reason you need to revert the game back to normal speeds. I apply this after all the calculations are done.

    Time.timeScale = 1;
    Time.fixedDeltaTime = 0.02F ;

Seems to work for me.

Happy coding and hope this helps others.

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
avatar image
0

Answer by kavyaparmar60 · 3 days ago

This is the best way of slow motion.hope it will be helpfull

public float SlowTimeFator = 0.05f;

 public void Doslow()
 {
     Time.timeScale = SlowTimeFator;
     Time.fixedDeltaTime = Time.timeScale * 0.05f;
 }
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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



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 change pitch or volume on ALL audio sources in scene? 4 Answers

Slow Motion Aim with special camera motions 2 Answers

Slow motion everything but player. 1 Answer

Smooth Slow Motion 3 Answers

Affecting all audio with slow motion but can't reset to original pitc 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges