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

Putting a canvas or canvas elements on a plane

Discussion in 'Immediate Mode GUI (IMGUI)' started by omatase, Sep 30, 2014.

  1. omatase

    omatase

    Joined:
    Jul 31, 2014
    Posts:
    159
    I'm doing a 2D/3D hybrid game. I have the 2D stuff down pretty well as far as the new UGUI is concerned. No problems with overlay worldspace or camera and no problems adding UI elements in amongst the rest of the UI elements in the world. However, I want to now add an animation where when a player clicks a button a canvas moves from off to the left and at a -90 degree x rotation to a 0 degree x rotation so that it kind of comes into view and has one edge pass near to the camera as it's doing that until it eventually settles flat.

    I know that can't work with my orthographic camera, or at least I would expect it not to work that way. So I'm thinking I need a perspective camera that overlays on top of my ortho camera but I'm not sure if that's the right solution.

    I have seen a video somewhere on putting a canvas an UI elements in 3D space but it could take a good 1/2 a day to find that video again.

    Any help appreciated!