GetPanel() public static method

Get closest parent panel for transform. if not found - new panel will be created at root GameObject.
public static GetPanel ( Transform obj ) : GuiPanel
obj UnityEngine.Transform Widget.
return GuiPanel
コード例 #1
0
 void ValidatePanel()
 {
     if (_panel == null)
     {
         _panel = GuiPanel.GetPanel(transform);
     }
 }