Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

RectMask2D vs CanvasGroup

Discussion in 'UGUI & TextMesh Pro' started by Eater_Games, Mar 20, 2019.

  1. Eater_Games

    Eater_Games

    Joined:
    Mar 19, 2018
    Posts:
    4
    hi, I was optimizing a game for android and I was a doubt, what is the best option for the optimization of the UI?

    -use RectMask2D so that everything outside the camera disappears (this causes me doubts, is the same as a CanvasGroup with Alpha 0? the RectMask2D also disable raycasts?)
    -using multiple CanvasGroups, so that at certain times, set the Alpha to 0 and disable Blocks Raycasts

    Which of the two forms should I use? or are they both the same?

    use google translate for this, sorry if anything is bad written

    EDIT: apparently, setting the alpha of a CanvasGroup to 0 does not affect performance, is this true?, im confused
     
    Last edited: Mar 21, 2019