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

Resolved Cannot access ScreenToWorld

Discussion in 'Project Tiny' started by Jobiky, Jul 13, 2020.

  1. Jobiky

    Jobiky

    Joined:
    Mar 24, 2020
    Posts:
    2
    Hello,
    As the title describes I can't access the ScreenToWorld type from
    Unity.Tiny.Rendering.Native
    even though it is included in the assembly definition. I have not been able to find a single why for the life of me.

    Any help would be greatly appreciated!

    Here is my assembly definition page
    https://imgur.com/a/AqMeerT

    And here is my build setting page
    https://imgur.com/a/VqBhoAw

    The environment is set up accordingly to the 2D Entities documentation (https://docs.unity3d.com/Packages/com.unity.2d.entities@0.22/manual/index.html)

    Thank you for everything!

    EDIT:
    If any information is missing please inform me and I will fix that as soon as possible
     
    Last edited: Jul 13, 2020
  2. Ted_Wikman

    Ted_Wikman

    Unity Technologies

    Joined:
    Oct 7, 2019
    Posts:
    916
    Hello @Jobiky,
    The current version of 2D Entities is using the Tiny 0.22 package versions. In 0.22, ScreenToWorld did not exist, and was introduced in more recent versions of Tiny.
    In TinyGems we created our own take on ScreenToWorld. The implementation can be found in CameraUtil.cs and an example on how it is used can be found in InputToActionSystem.cs.

    Let me know if this fixes your issue!
     
    Jobiky and brunocoimbra like this.
  3. Jobiky

    Jobiky

    Joined:
    Mar 24, 2020
    Posts:
    2
    Oh that would be it, haha!
    Thank you so much for all your help!
     
    Ted_Wikman likes this.