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

How to handle Canvas ?

Discussion in 'Scripting' started by U7Games, Aug 31, 2018.

  1. U7Games

    U7Games

    Joined:
    May 21, 2011
    Posts:
    943
    Hi..

    What is the best way to handle Canvas?.. do you make it "DontDestroyOnLoad" or have a different canvas on each scene ?
     
  2. BlackPete

    BlackPete

    Joined:
    Nov 16, 2016
    Posts:
    970
    Your question is too broad. What problem are you trying to solve?

    You can have as many Canvases as you want in your scene. They can even be nested. One could be an overlay, one could be world space, etc.
     
    U7Games likes this.
  3. U7Games

    U7Games

    Joined:
    May 21, 2011
    Posts:
    943
    Thanks for answering, i was meaning how to get a better organization of canvas, specially if you have a lot of different view groups, but finally i have figured out how to do it....