Search Unity

Resolved Sprite Shape Controller Arbitrarily Chooses Angles

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

  1. arachnidLeo

    arachnidLeo

    Joined:
    Nov 22, 2012
    Posts:
    6
    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:
    478
    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:
    6
    Thanks Venkify! Somehow I missed that.
     
unityunity