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. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

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

Discussion in 'Project Tiny' started by Rhiojin, May 7, 2019.

  1. Rhiojin

    Rhiojin

    Joined:
    Dec 12, 2012
    Posts:
    8
    Following the tutorial series by mike im simply trying to get some delta time.
    but i get the error above.
    What am i missing? Screenshot 2019-05-07 09.48.09.png
     
  2. Zionisias

    Zionisias

    Joined:
    Apr 23, 2019
    Posts:
    40
    I'm not sure about ut.Time.deltaTime() being a thing, but I use this.scheduler.deltaTime() and it seems to work as expected.
     
    Rhiojin and reallyhexln like this.
  3. Rupture13

    Rupture13

    Joined:
    Apr 12, 2016
    Posts:
    128
    The Time class he's using in the tutorial is not standard in Tiny. It's a custom made class but they made it in the "ut" namespace, so it looks like it's default. Don't be tricked by that ;]

    You can either make your own Time class (and put it in the "ut" namespace if you really want), or just use the deltaTime from the Scheduler class, as suggested above.
     
    Rhiojin and Zionisias like this.
  4. Rhiojin

    Rhiojin

    Joined:
    Dec 12, 2012
    Posts:
    8
    Thats the most misleading thing ive seen in ages .....
    In anycase thanks. Seems to work now.