Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

ut.Time.deltaTime() does not exist?

Discussion in 'Project Tiny' started by Anton_hc, Mar 14, 2019.

  1. Anton_hc

    Anton_hc

    Joined:
    Jul 6, 2012
    Posts:
    15
    i try to use ut.Time.deltaTime() as in the example, but get error:

    TypeScriptError: Property 'Time' does not exist on type 'typeof ut'.

    On the help page i cant find "Time" class, deltaTime present only in Scheduller class. But i get same error, if try to use it.
     
  2. vincismurf

    vincismurf

    Joined:
    Feb 28, 2013
    Posts:
    192
    I think it is now ut.scheduler.LookAtTheExamples()
     
    sniffle63 likes this.
  3. ER_Dolleman

    ER_Dolleman

    Joined:
    Dec 10, 2018
    Posts:
    19
  4. Rupture13

    Rupture13

    Joined:
    Apr 12, 2016
    Posts:
    78
    You can use:
    this.scheduler.deltaTime()


    And if you want more Time functionality than just a deltaTime, you indeed will have to make/copy your own Time class.
     
  5. Zoelovezle

    Zoelovezle

    Joined:
    Aug 7, 2015
    Posts:
    54
    It's because of ut.Time is a component script. You have to grab that script in your project.
     
  6. Anton_hc

    Anton_hc

    Joined:
    Jul 6, 2012
    Posts:
    15
    thanks, i was reload the examples =) Tiny Project was updated, but examples stay old.