UnityEditor.PopupWindowContent.OnOpen C# (CSharp) Method

OnOpen() public method

Callback when the popup window is opened.

public OnOpen ( ) : void
return void
        public virtual void OnOpen()
        {
        }

Usage Example

示例#1
0
 void Init(Rect activatorRect, PopupWindowContent windowContent, PopupLocationHelper.PopupLocation[] locationPriorityOrder, ShowMode showMode)
 {
     hideFlags       = HideFlags.DontSave;
     wantsMouseMove  = true;
     m_WindowContent = windowContent;
     m_WindowContent.editorWindow = this;
     m_WindowContent.OnOpen();
     m_ActivatorRect = GUIUtility.GUIToScreenRect(activatorRect);
     ShowAsDropDown(m_ActivatorRect, m_WindowContent.GetWindowSize(), locationPriorityOrder, showMode);
 }
All Usage Examples Of UnityEditor.PopupWindowContent::OnOpen