示例#1
0
    static void Init()
    {
        ShowPopup window = ScriptableObject.CreateInstance <ShowPopup>();

        window.position = new Rect(Screen.width / 2, Screen.height / 2, 250, 150);
        window.ShowPopup();
    }