Esempio n. 1
0
        static void CreateSRIA(MenuCommand menuCommand)
        {
            string reasonIfNotValid;

            // Manually checking for validation, as this provides richer info about the case when creation is not possible
            if (!CreateSRIAWindow.Validate(true, out reasonIfNotValid))
            {
                CWiz.ShowCouldNotExecuteCommandNotification(null);
                Debug.Log("SRIA: Could not create ScrollView on the selected object: " + reasonIfNotValid);
                return;
            }

            CreateSRIAWindow.Open(new CreateSRIAWindow.Parameters());
        }
        public static void Open(Parameters windowParams)
        {
            CreateSRIAWindow windowInstance = GetWindow <CreateSRIAWindow>();

            windowInstance.InitWithNewParams(windowParams);
        }