Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

WindowToWorld returns 0,0

Discussion in 'Project Tiny' started by Zoelovezle, Mar 19, 2019.

  1. Zoelovezle

    Zoelovezle

    Joined:
    Aug 7, 2015
    Posts:
    54
    The following function ut.Core2D.TransformService.windowToWorld
    returns vector.zero when used right away when the game starts. I also tried adding ut.Core2D.TransformObjectToWorld manually to camera entity.
    I am using a quick hack to fix it by adding an async function which runs after 500 milliseconds as for now.