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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Resolved Sprite Shape Controller Arbitrarily Chooses Angles

Discussion in '2D' started by arachnidLeo, Jun 2, 2021.

  1. arachnidLeo

    arachnidLeo

    Joined:
    Nov 22, 2012
    Posts:
    13
    Demonstrating this with the demo that comes with the Sprite Shape package.

    You can define angle ranges for the borders of the sprite like below.
    upload_2021-6-2_17-35-28.png

    However, in reality the sprite shape controller seems to just arbitrarily choose the sprite. Gif below shows this:

    sprite shape bug.gif

    Is there something I'm missing here? The documentation implies this feature just kinda works.
     
  2. Venkify

    Venkify

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    619
    The Sprite is chosen based on the Angle-Range applicable at the current point only when its Tangent mode is either Linear or Broken. If a point's Tangent mode is Continuous it simply continues the Sprite that is active from the previous point.
     
  3. arachnidLeo

    arachnidLeo

    Joined:
    Nov 22, 2012
    Posts:
    13
    Thanks Venkify! Somehow I missed that.