Author Topic: 【UIPanel's question】Add or use UIPanel In Right way?  (Read 1340 times)

FrankYan

  • Newbie
  • *
  • Thank You
  • -Given: 6
  • -Receive: 2
  • Posts: 18
    • View Profile
【UIPanel's question】Add or use UIPanel In Right way?
« on: June 24, 2015, 04:14:26 AM »
I have many "UIPanel or UIWindow" in my Scene.such as UILevelPanel ,UIFriendPanel ,UIDialogPanel ,UIMatchingPanel and so on.

I like to Add UIPanel to each of them for controlling their depth.I do not know this is a wrong way to use UIPanel?

1.Less usage of UIPanel in scene will enhance the performance?
2.When should we add UIPanel script to a GameObject?
3.If I have many UIWindows in scene ,How to controll their depth when they are all in the scene?


Forgiving my poor english. :'(

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 【UIPanel's question】Add or use UIPanel In Right way?
« Reply #1 on: June 25, 2015, 08:50:39 PM »
Simple rule of thumb is 1 panel per window.