UnityEditor.SketchUpImportDlg.Launch C# (CSharp) Method

Launch() static private method

static private Launch ( SketchUpNodeInfo nodes, SketchUpImporterModelEditor suModelEditor ) : void
nodes SketchUpNodeInfo
suModelEditor SketchUpImporterModelEditor
return void
        internal static void Launch(SketchUpNodeInfo[] nodes, SketchUpImporterModelEditor suModelEditor)
        {
            SketchUpImportDlg windowDontShow = EditorWindow.GetWindowDontShow<SketchUpImportDlg>();
            windowDontShow.Init(nodes, suModelEditor);
            windowDontShow.ShowAuxWindow();
        }

Usage Example

 public override void OnInspectorGUI()
 {
     GUILayout.Label(Styles.sketchUpLabel, EditorStyles.boldLabel, new GUILayoutOption[0]);
     EditorGUILayout.PropertyField(this.m_GenerateBackFace, Styles.generateBackFaceLabel, new GUILayoutOption[0]);
     EditorGUILayout.PropertyField(this.m_MergeCoplanarFaces, Styles.mergeCoplanarFaces, new GUILayoutOption[0]);
     EditorGUILayout.BeginHorizontal(new GUILayoutOption[0]);
     GUILayoutOption[] options = new GUILayoutOption[] { GUILayout.MinWidth(EditorGUIUtility.labelWidth) };
     GUILayout.Label(Styles.fileUnitLabel, options);
     GUILayout.Label("1", new GUILayoutOption[0]);
     GUILayoutOption[] optionArray2 = new GUILayoutOption[] { GUILayout.MaxWidth(100f) };
     EditorGUILayout.Popup(this.m_FileUnit, Styles.measurementOptions, GUIContent.Temp(""), optionArray2);
     this.lengthToUnit = ConvertGlobalScaleToUnit((EFileUnit)this.m_FileUnit.intValue, this.m_GlobalScale.floatValue);
     GUILayout.Label("=", new GUILayoutOption[0]);
     this.lengthToUnit             = EditorGUILayout.FloatField(this.lengthToUnit, new GUILayoutOption[0]);
     this.m_GlobalScale.floatValue = CovertUnitToGlobalScale((EFileUnit)this.m_FileUnit.intValue, this.lengthToUnit);
     EditorGUILayout.EndHorizontal();
     using (new EditorGUI.DisabledScope(true))
     {
         EditorGUILayout.FloatField(Styles.longitudeLabel, this.m_Longitude.floatValue, new GUILayoutOption[0]);
         EditorGUILayout.FloatField(Styles.latitudeLabel, this.m_Latitude.floatValue, new GUILayoutOption[0]);
         EditorGUILayout.FloatField(Styles.northCorrectionLabel, this.m_NorthCorrection.floatValue, new GUILayoutOption[0]);
     }
     EditorGUILayout.BeginHorizontal(new GUILayoutOption[0]);
     if (GUILayout.Button(Styles.selectNodeButton, new GUILayoutOption[0]))
     {
         SketchUpImportDlg.Launch(this.m_Target.GetNodes(), this);
         GUIUtility.ExitGUI();
     }
     GUILayout.FlexibleSpace();
     EditorGUILayout.EndHorizontal();
     base.OnInspectorGUI();
 }
All Usage Examples Of UnityEditor.SketchUpImportDlg::Launch