示例#1
0
        // Creates a wizard.
        public static VRMExporterWizard DisplayWizard()
        {
            VRMExporterWizard wizard = CreateInstance <VRMExporterWizard>();

            wizard.titleContent = new GUIContent("VRM Exporter");
            if (wizard != null)
            {
                wizard.InvokeWizardUpdate();
                wizard.ShowUtility();
            }
            return(wizard);
        }
示例#2
0
        // Creates a wizard.
        public static VRMExporterWizard DisplayWizard(string title, Type klass, [uei.DefaultValueAttribute("\"Create\"")] string createButtonName, [uei.DefaultValueAttribute("\"\"")] string otherButtonName)
        {
            VRMExporterWizard wizard = CreateInstance(klass) as VRMExporterWizard;

            wizard.m_CreateButton = createButtonName;
            wizard.m_OtherButton  = otherButtonName;
            wizard.titleContent   = new GUIContent(title);
            if (wizard != null)
            {
                wizard.InvokeWizardUpdate();
                wizard.ShowUtility();
            }
            return(wizard);
        }
示例#3
0
        public static void CreateWizard()
        {
            var wiz = VRMExporterWizard.DisplayWizard();
            var go  = Selection.activeObject as GameObject;

            // update checkbox
            wiz.UpdateRoot(go);

            if (go != null)
            {
                wiz.m_settings.PoseFreeze = VRMExporterValidator.HasRotationOrScale(go);
            }

            wiz.OnWizardUpdate();
        }
示例#4
0
 private static void ExportFromMenu()
 {
     VRMExporterWizard.CreateWizard();
 }
示例#5
0
 private static void ExportToVrmFile() => VRMExporterWizard.OpenExportMenu();
示例#6
0
        public void DetectFileNameLength(string fileName, bool isIllegal)
        {
            var result = VRMExporterWizard.IsFileNameLengthTooLong(fileName);

            Assert.AreEqual(result, isIllegal);
        }