Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We've updated our Terms of Service. Please read our blog post from Unity CTO and Co-Founder Joachim Ante here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Accessing tightly-packed atlas UV coordinates from a Sprite reference

Discussion in '2D Experimental Preview' started by Alex_May, Oct 29, 2018.

  1. Alex_May

    Alex_May

    Joined:
    Dec 29, 2013
    Posts:
    135
    There seems to be no way of getting these besides going through the mesh UVs and doing a min/max. Even that might not return the original rect extents if the mesh is a polygon that is smaller than the original rect. Am I wrong?
     

    Attached Files:

    • ssss.jpg
      ssss.jpg
      File size:
      150.6 KB
      Views:
      53
  2. Alex_May

    Alex_May

    Joined:
    Dec 29, 2013
    Posts:
    135
  3. Alex_May

    Alex_May

    Joined:
    Dec 29, 2013
    Posts:
    135
    Oh I get it - if the sprites are tightly packed then rects are not valid drawing primitives because they may contain parts of other sprites.