UnityEditor.ProfilerIPWindow.Show C# (CSharp) Method

Show() public static method

public static Show ( Rect buttonScreenRect ) : void
buttonScreenRect UnityEngine.Rect
return void
        public static void Show(Rect buttonScreenRect)
        {
            Rect rect = new Rect(buttonScreenRect.x, buttonScreenRect.yMax, 300f, 50f);
            ProfilerIPWindow window = EditorWindow.GetWindowWithRect<ProfilerIPWindow>(rect, true, "Enter Player IP");
            window.position = rect;
            window.m_Parent.window.m_DontSaveToLayout = true;
        }
    }

Usage Example

示例#1
0
 void AddEnterIPProfiler(List <ProfilerChoise> profilers, Rect buttonScreenRect)
 {
     profilers.Add(new ProfilerChoise()
     {
         Name       = kEnterIPText,
         Enabled    = true,
         IsSelected = () => { return(false); },
         ConnectTo  = () => { ProfilerIPWindow.Show(buttonScreenRect); }
     });
 }
All Usage Examples Of UnityEditor.ProfilerIPWindow::Show