public static void ShowWindow() { // Get existing open window or if none, make a new one: CardboardSetup window = (CardboardSetup)EditorWindow.GetWindow(typeof(CardboardSetup)); // Setup the window. window.FindCameras(); window.AdjustWindowSize(); window.Show(); }
// Setup wizard //[MenuItem("Cardboard/Cardboard Setup...", false, 20)] private static void ModifyExistingCamera() { // Show helper dialog. CardboardSetup.ShowWindow(); }