Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Canvas Structure for Different UI Panels

Discussion in 'UGUI & TextMesh Pro' started by siddharth3322, Aug 7, 2019.

  1. siddharth3322

    siddharth3322

    Joined:
    Nov 29, 2013
    Posts:
    1,042
    I have a few general questions related to Canvas usage related, here are those:

    1. Does it good practice to create different screens in Single Canvas? Like the main menu, game over, pause dialog etc...
    2. If we change any Canvas element's value then all Canvas elements rendered again? whether they are enabled or disabled...
    3. when to create multiple Canvas in the Scene?
    4. I was getting Canvas update related big spikes in Unity Profiler after implementing this structure and Game HUD panel updating multiple times during gameplay - Please check below image so what is the cause?
    unity_canvas_system.PNG

    Please share your knowledge regarding my above questions so Canvas and under it UI creation related concept become more clear :)
     
  2. bentontr

    bentontr

    Joined:
    Jun 9, 2017
    Posts:
    39
    Have you checked out this talk on optimizing uGUI yet? Seems like it could help you out:

     
  3. siddharth3322

    siddharth3322

    Joined:
    Nov 29, 2013
    Posts:
    1,042
    I watched the above video but I want a specific answer to my questions.