Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Rotating UI element in Overlay?

Discussion in 'UGUI & TextMesh Pro' started by jpthek9, Apr 30, 2015.

  1. jpthek9

    jpthek9

    Joined:
    Nov 28, 2013
    Posts:
    944
    For the GUI I'm designing, I want a slight tilt effect where certain elements are tilted in for the illusion of a concave screen - but I don't want to incur the performance costs of a world space canvas. Is there any way I can rotate a UI element in overlay?
     
  2. SimonDarksideJ

    SimonDarksideJ

    Joined:
    Jul 3, 2012
    Posts:
    1,688
    If you want to Tilt (not rotate) gameObject, then the camvas will have to be at a minimum a Screen Space - Camera canvas or a WorldSpace canvas

    Screen Space - overlay is flat 2D only.
     
  3. simon_chen

    simon_chen

    Joined:
    Apr 30, 2013
    Posts:
    2
    you can make it possible by implementing IVertexModifier

    here is the code I modify from UI/Effects/Shadow and UI/Effects/Outline

    I hope it works for you
     

    Attached Files:

    • Tilt.cs
      File size:
      1.4 KB
      Views:
      1,042