Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Screen Space canvas

Discussion in 'Project Tiny' started by vincismurf, Dec 12, 2018.

  1. vincismurf

    vincismurf

    Joined:
    Feb 28, 2013
    Posts:
    200
    Is there a way to tell the canvas to be Screen Space Overlay? . . . I keep leaving my canvas behind when player moves
     
  2. vincismurf

    vincismurf

    Joined:
    Feb 28, 2013
    Posts:
    200
    The Old school solution is to have 2 cameras . . . .a UICamera used by the canvas which has Culling set to UI and the world ( moving camera) culling set everything without the UI. Also set the UI components to the UI Layer.
     
    Last edited: Dec 12, 2018
  3. sebastianm_unity

    sebastianm_unity

    Unity Technologies

    Joined:
    May 3, 2018
    Posts:
    21
    Another way is to make anything you want to stick with a camera a child of your camera node in the transform hierarchy.
     
  4. vincismurf

    vincismurf

    Joined:
    Feb 28, 2013
    Posts:
    200
    The Canvas complains that the root isn't a RectTransform so I didn't go that route.