// 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); }
// 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); }
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(); }
private static void ExportFromMenu() { VRMExporterWizard.CreateWizard(); }
private static void ExportToVrmFile() => VRMExporterWizard.OpenExportMenu();
public void DetectFileNameLength(string fileName, bool isIllegal) { var result = VRMExporterWizard.IsFileNameLengthTooLong(fileName); Assert.AreEqual(result, isIllegal); }