Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            SnapperWindow win = new SnapperWindow();

            User32Application app = new User32Application();
            app.Run(win);
        }
Exemplo n.º 2
0
    public static void ShowWindow()
    {
        // Shows an instance of custom window, SnapperWindow
        SnapperWindow window = GetWindow <SnapperWindow>();
        // Loads an icon from an image stored at the specified path
        Texture icon = (Texture)EditorGUIUtility.Load("Icons/Snapper.png");
        // Create the instance of GUIContent to assign to the window. Gives the title "SnapperWindow" and the icon
        GUIContent titleContent = new GUIContent("Snapper", icon);

        window.minSize      = new Vector2(650, 200);
        window.titleContent = titleContent;
    }