Add slow motion

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

Set the timescale.

Time.timeScale = 0.5f; // 50% slower

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

LP Unity creations

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

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.

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;
}