UI隐显方式

  1. Setactive:触发rebatch
  2. Transform:触发rebatch
  3. SetLayer:触发rebatch
  4. CanvasGroup
    • 不触发rebuild隐藏显示Pannel
    • 原理:子节点mesh顶点色与alpha相乘
    • 真正切到0时会有Batch,但是切到0.000000001时不会有