protected override void OnSettingsGUI() { GUILayout.Label("Weld Settings", EditorStyles.boldLabel); EditorGUI.BeginChangeCheck(); m_WeldDistance.value = EditorGUILayout.FloatField(gc_weldDistance, m_WeldDistance); if (EditorGUI.EndChangeCheck()) { if (m_WeldDistance < k_MinWeldDistance) { m_WeldDistance.value = k_MinWeldDistance; } ProBuilderSettings.Save(); } GUILayout.FlexibleSpace(); if (GUILayout.Button("Weld Vertices")) { DoAction(); } }
protected override void OnSettingsGUI() { GUILayout.Label("Extrude Settings", EditorStyles.boldLabel); EditorGUILayout.HelpBox("Extrude Amount determines how far an edge will be moved along it's normal when extruding. This value can be negative.\n\nExtrude as Group determines whether or not adjacent faces stay attached to one another when extruding.", MessageType.Info); EditorGUI.BeginChangeCheck(); VertexManipulationTool.s_ExtrudeEdgesAsGroup.value = EditorGUILayout.Toggle("As Group", VertexManipulationTool.s_ExtrudeEdgesAsGroup); m_ExtrudeEdgeDistance.value = EditorGUILayout.FloatField("Distance", m_ExtrudeEdgeDistance); if (EditorGUI.EndChangeCheck()) { ProBuilderSettings.Save(); } GUILayout.FlexibleSpace(); if (GUILayout.Button("Extrude Edges")) { PerformAction(); } }
static void TryLoadFbxSupport() { ModelExporter.RegisterMeshCallback <ProBuilderMesh>(GetMeshForPBComponent, true); s_FbxOptions.quads = ProBuilderSettings.Get <bool>("Export::m_FbxQuads", SettingsScope.User, true); }