Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Time.timeScale???

Discussion in 'Scripting' started by FreshTillDeath0, May 1, 2014.

  1. FreshTillDeath0

    FreshTillDeath0

    Joined:
    Feb 18, 2013
    Posts:
    69
    Hi just a quick question does Time.timeScale slow down timers in games?? and Yield?
     
  2. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
    My auntie Google knows almost everything about that topic.
     
  3. FreshTillDeath0

    FreshTillDeath0

    Joined:
    Feb 18, 2013
    Posts:
    69
    I searched it and nothin was showing up
     
  4. LightStriker

    LightStriker

    Joined:
    Aug 3, 2013
    Posts:
    2,716
    timeScale is a multiplier over deltaTime, which is used for almost everything. Usually, when you modify timeScale, you will want to modify fixedDeltaTime at the same time, otherwise physic stuff will continue to run at normal rate or something like that.
     
  5. FreshTillDeath0

    FreshTillDeath0

    Joined:
    Feb 18, 2013
    Posts:
    69
    thanks for the help.
     
  6. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,738
    To answer another question, yields are affected by timeScale as well. If Time.timeScale is 5, then "yield return new WaitForSeconds(10f);" will wait 2 seconds.