Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

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:
    928
    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.