static void LoadPrefs() { if (s_PrefsLoaded) { return; } s_PrefsLoaded = true; pbStripProBuilderOnBuild = PreferencesInternal.GetBool(PreferenceKeys.pbStripProBuilderOnBuild); pbDisableAutoUV2Generation = PreferencesInternal.GetBool(PreferenceKeys.pbDisableAutoUV2Generation); pbShowSceneInfo = PreferencesInternal.GetBool(PreferenceKeys.pbShowSceneInfo); defaultOpenInDockableWindow = PreferencesInternal.GetBool(PreferenceKeys.pbDefaultOpenInDockableWindow); pbForceConvex = PreferencesInternal.GetBool(PreferenceKeys.pbForceConvex); pbForceGridPivot = PreferencesInternal.GetBool(PreferenceKeys.pbForceGridPivot); pbForceVertexPivot = PreferencesInternal.GetBool(PreferenceKeys.pbForceVertexPivot); pbPerimeterEdgeBridgeOnly = PreferencesInternal.GetBool(PreferenceKeys.pbPerimeterEdgeBridgeOnly); pbPBOSelectionOnly = PreferencesInternal.GetBool(PreferenceKeys.pbPBOSelectionOnly); pbCloseShapeWindow = PreferencesInternal.GetBool(PreferenceKeys.pbCloseShapeWindow); pbUVEditorFloating = PreferencesInternal.GetBool(PreferenceKeys.pbUVEditorFloating); pbShowEditorNotifications = PreferencesInternal.GetBool(PreferenceKeys.pbShowEditorNotifications); pbUniqueModeShortcuts = PreferencesInternal.GetBool(PreferenceKeys.pbUniqueModeShortcuts); pbIconGUI = PreferencesInternal.GetBool(PreferenceKeys.pbIconGUI); pbShiftOnlyTooltips = PreferencesInternal.GetBool(PreferenceKeys.pbShiftOnlyTooltips); pbMeshesAreAssets = PreferencesInternal.GetBool(PreferenceKeys.pbMeshesAreAssets); pbEnableExperimental = PreferencesInternal.GetBool(PreferenceKeys.pbEnableExperimental); showMissingLightmapUvWarning = PreferencesInternal.GetBool(PreferenceKeys.pbShowMissingLightmapUvWarning, false); pbShowPreselectionHighlight = PreferencesInternal.GetBool(PreferenceKeys.pbShowPreselectionHighlight); pbUseUnityColors = PreferencesInternal.GetBool(PreferenceKeys.pbUseUnityColors); pbLineHandleSize = PreferencesInternal.GetFloat(PreferenceKeys.pbLineHandleSize); pbWireframeSize = PreferencesInternal.GetFloat(PreferenceKeys.pbWireframeSize); faceSelectedColor = PreferencesInternal.GetColor(PreferenceKeys.pbSelectedFaceColor); pbWireframeColor = PreferencesInternal.GetColor(PreferenceKeys.pbWireframeColor); pbPreselectionColor = PreferencesInternal.GetColor(PreferenceKeys.pbPreselectionColor); pbSelectedFaceDither = PreferencesInternal.GetBool(PreferenceKeys.pbSelectedFaceDither); pbSelectedEdgeColor = PreferencesInternal.GetColor(PreferenceKeys.pbSelectedEdgeColor); pbUnselectedEdgeColor = PreferencesInternal.GetColor(PreferenceKeys.pbUnselectedEdgeColor); vertexSelectedColor = PreferencesInternal.GetColor(PreferenceKeys.pbSelectedVertexColor); vertexUnselectedColor = PreferencesInternal.GetColor(PreferenceKeys.pbUnselectedVertexColor); pbUVGridSnapValue = PreferencesInternal.GetFloat(PreferenceKeys.pbUVGridSnapValue); pbVertexHandleSize = PreferencesInternal.GetFloat(PreferenceKeys.pbVertexHandleSize); defaultColliderType = PreferencesInternal.GetEnum <ColliderType>(PreferenceKeys.pbDefaultCollider); pbToolbarLocation = PreferencesInternal.GetEnum <SceneToolbarLocation>(PreferenceKeys.pbToolbarLocation); pbShadowCastingMode = PreferencesInternal.GetEnum <ShadowCastingMode>(PreferenceKeys.pbShadowCastingMode); pbDefaultStaticFlags = PreferencesInternal.GetEnum <StaticEditorFlags>(PreferenceKeys.pbDefaultStaticFlags); // pbDefaultMaterial = PreferencesInternal.GetMaterial(PreferenceKeys.pbDefaultMaterial); defaultShortcuts = PreferencesInternal.GetShortcuts().ToArray(); }
public static void SetPrefs() { PreferencesInternal.SetBool(PreferenceKeys.pbStripProBuilderOnBuild, pbStripProBuilderOnBuild); PreferencesInternal.SetBool(PreferenceKeys.pbDisableAutoUV2Generation, pbDisableAutoUV2Generation); PreferencesInternal.SetBool(PreferenceKeys.pbShowSceneInfo, pbShowSceneInfo, PreferenceLocation.Global); PreferencesInternal.SetInt(PreferenceKeys.pbToolbarLocation, (int)pbToolbarLocation, PreferenceLocation.Global); PreferencesInternal.SetBool(PreferenceKeys.pbUseUnityColors, pbUseUnityColors, PreferenceLocation.Global); PreferencesInternal.SetBool(PreferenceKeys.pbSelectedFaceDither, pbSelectedFaceDither, PreferenceLocation.Global); PreferencesInternal.SetFloat(PreferenceKeys.pbLineHandleSize, pbLineHandleSize, PreferenceLocation.Global); PreferencesInternal.SetFloat(PreferenceKeys.pbVertexHandleSize, pbVertexHandleSize, PreferenceLocation.Global); PreferencesInternal.SetFloat(PreferenceKeys.pbWireframeSize, pbWireframeSize, PreferenceLocation.Global); PreferencesInternal.SetColor(PreferenceKeys.pbSelectedFaceColor, faceSelectedColor, PreferenceLocation.Global); PreferencesInternal.SetColor(PreferenceKeys.pbWireframeColor, pbWireframeColor, PreferenceLocation.Global); PreferencesInternal.SetColor(PreferenceKeys.pbPreselectionColor, pbPreselectionColor, PreferenceLocation.Global); PreferencesInternal.SetColor(PreferenceKeys.pbSelectedVertexColor, vertexSelectedColor, PreferenceLocation.Global); PreferencesInternal.SetColor(PreferenceKeys.pbUnselectedVertexColor, vertexUnselectedColor, PreferenceLocation.Global); PreferencesInternal.SetColor(PreferenceKeys.pbSelectedEdgeColor, pbSelectedEdgeColor, PreferenceLocation.Global); PreferencesInternal.SetColor(PreferenceKeys.pbUnselectedEdgeColor, pbUnselectedEdgeColor, PreferenceLocation.Global); PreferencesInternal.SetString(PreferenceKeys.pbDefaultShortcuts, Shortcut.ShortcutsToString(defaultShortcuts), PreferenceLocation.Global); // PreferencesInternal.SetMaterial(PreferenceKeys.pbDefaultMaterial, pbDefaultMaterial); PreferencesInternal.SetInt(PreferenceKeys.pbDefaultCollider, (int)defaultColliderType); PreferencesInternal.SetInt(PreferenceKeys.pbShadowCastingMode, (int)pbShadowCastingMode); PreferencesInternal.SetInt(PreferenceKeys.pbDefaultStaticFlags, (int)pbDefaultStaticFlags); PreferencesInternal.SetBool(PreferenceKeys.pbDefaultOpenInDockableWindow, defaultOpenInDockableWindow, PreferenceLocation.Global); PreferencesInternal.SetBool(PreferenceKeys.pbShowEditorNotifications, pbShowEditorNotifications, PreferenceLocation.Global); PreferencesInternal.SetBool(PreferenceKeys.pbForceConvex, pbForceConvex); PreferencesInternal.SetBool(PreferenceKeys.pbForceVertexPivot, pbForceVertexPivot, PreferenceLocation.Global); PreferencesInternal.SetBool(PreferenceKeys.pbForceGridPivot, pbForceGridPivot, PreferenceLocation.Global); PreferencesInternal.SetBool(PreferenceKeys.pbPerimeterEdgeBridgeOnly, pbPerimeterEdgeBridgeOnly, PreferenceLocation.Global); PreferencesInternal.SetBool(PreferenceKeys.pbPBOSelectionOnly, pbPBOSelectionOnly, PreferenceLocation.Global); PreferencesInternal.SetBool(PreferenceKeys.pbCloseShapeWindow, pbCloseShapeWindow, PreferenceLocation.Global); PreferencesInternal.SetBool(PreferenceKeys.pbUVEditorFloating, pbUVEditorFloating, PreferenceLocation.Global); PreferencesInternal.SetBool(PreferenceKeys.pbUniqueModeShortcuts, pbUniqueModeShortcuts, PreferenceLocation.Global); PreferencesInternal.SetBool(PreferenceKeys.pbIconGUI, pbIconGUI, PreferenceLocation.Global); PreferencesInternal.SetBool(PreferenceKeys.pbShiftOnlyTooltips, pbShiftOnlyTooltips, PreferenceLocation.Global); PreferencesInternal.SetBool(PreferenceKeys.pbMeshesAreAssets, pbMeshesAreAssets); PreferencesInternal.SetBool(PreferenceKeys.pbEnableExperimental, pbEnableExperimental, PreferenceLocation.Global); PreferencesInternal.SetBool(PreferenceKeys.pbShowMissingLightmapUvWarning, showMissingLightmapUvWarning, PreferenceLocation.Global); PreferencesInternal.SetBool(PreferenceKeys.pbShowPreselectionHighlight, pbShowPreselectionHighlight, PreferenceLocation.Global); PreferencesInternal.SetFloat(PreferenceKeys.pbUVGridSnapValue, pbUVGridSnapValue, PreferenceLocation.Global); ProBuilderEditor.ReloadSettings(); SceneView.RepaintAll(); }
static void RecoverOldPreferences() { int success = 0; foreach (var map in s_FormerPreferenceKeyMap) { object val; MethodInfo set = typeof(Settings).GetMethod("Set", BindingFlags.Static | BindingFlags.Public); #pragma warning disable 618 if (!string.IsNullOrEmpty(map.oldKey) && PreferencesInternal.TryGetValue(map.oldKey, map.type, out val)) { try { MethodInfo genericSet = set.MakeGenericMethod(map.type); genericSet.Invoke(null, new object[] { map.newKey, val, map.scope }); success++; } catch { } } #pragma warning restore 618 } #if PB_DEBUG Debug.Log("ProBuilder successfully recovered " + success + " settings."); #endif ProBuilderSettings.Save(); }
static void DeleteObsoletePreferences() { #pragma warning disable 612, 618 PreferencesInternal.DeleteKey(PreferenceKeys.pbDefaultEditLevel); PreferencesInternal.DeleteKey(PreferenceKeys.pbDefaultSelectionMode); PreferencesInternal.DeleteKey(PreferenceKeys.pbHandleAlignment); PreferencesInternal.DeleteKey(PreferenceKeys.pbVertexColorTool); PreferencesInternal.DeleteKey(PreferenceKeys.pbToolbarLocation); PreferencesInternal.DeleteKey(PreferenceKeys.pbDefaultEntity); PreferencesInternal.DeleteKey(PreferenceKeys.pbUseUnityColors); PreferencesInternal.DeleteKey(PreferenceKeys.pbLineHandleSize); PreferencesInternal.DeleteKey(PreferenceKeys.pbWireframeSize); PreferencesInternal.DeleteKey(PreferenceKeys.pbSelectedFaceColor); PreferencesInternal.DeleteKey(PreferenceKeys.pbWireframeColor); PreferencesInternal.DeleteKey(PreferenceKeys.pbPreselectionColor); PreferencesInternal.DeleteKey(PreferenceKeys.pbSelectedFaceDither); PreferencesInternal.DeleteKey(PreferenceKeys.pbSelectedVertexColor); PreferencesInternal.DeleteKey(PreferenceKeys.pbUnselectedVertexColor); PreferencesInternal.DeleteKey(PreferenceKeys.pbSelectedEdgeColor); PreferencesInternal.DeleteKey(PreferenceKeys.pbUnselectedEdgeColor); PreferencesInternal.DeleteKey(PreferenceKeys.pbDefaultOpenInDockableWindow); PreferencesInternal.DeleteKey(PreferenceKeys.pbEditorPrefVersion); PreferencesInternal.DeleteKey(PreferenceKeys.pbEditorShortcutsVersion); PreferencesInternal.DeleteKey(PreferenceKeys.pbDefaultCollider); PreferencesInternal.DeleteKey(PreferenceKeys.pbForceConvex); PreferencesInternal.DeleteKey(PreferenceKeys.pbVertexColorPrefs); PreferencesInternal.DeleteKey(PreferenceKeys.pbShowEditorNotifications); PreferencesInternal.DeleteKey(PreferenceKeys.pbDragCheckLimit); PreferencesInternal.DeleteKey(PreferenceKeys.pbForceVertexPivot); PreferencesInternal.DeleteKey(PreferenceKeys.pbForceGridPivot); PreferencesInternal.DeleteKey(PreferenceKeys.pbManifoldEdgeExtrusion); PreferencesInternal.DeleteKey(PreferenceKeys.pbPerimeterEdgeBridgeOnly); PreferencesInternal.DeleteKey(PreferenceKeys.pbPBOSelectionOnly); PreferencesInternal.DeleteKey(PreferenceKeys.pbCloseShapeWindow); PreferencesInternal.DeleteKey(PreferenceKeys.pbUVEditorFloating); PreferencesInternal.DeleteKey(PreferenceKeys.pbUVMaterialPreview); PreferencesInternal.DeleteKey(PreferenceKeys.pbShowSceneToolbar); PreferencesInternal.DeleteKey(PreferenceKeys.pbNormalizeUVsOnPlanarProjection); PreferencesInternal.DeleteKey(PreferenceKeys.pbStripProBuilderOnBuild); PreferencesInternal.DeleteKey(PreferenceKeys.pbDisableAutoUV2Generation); PreferencesInternal.DeleteKey(PreferenceKeys.pbShowSceneInfo); PreferencesInternal.DeleteKey(PreferenceKeys.pbEnableBackfaceSelection); PreferencesInternal.DeleteKey(PreferenceKeys.pbVertexPaletteDockable); PreferencesInternal.DeleteKey(PreferenceKeys.pbExtrudeAsGroup); PreferencesInternal.DeleteKey(PreferenceKeys.pbUniqueModeShortcuts); PreferencesInternal.DeleteKey(PreferenceKeys.pbMaterialEditorFloating); PreferencesInternal.DeleteKey(PreferenceKeys.pbShapeWindowFloating); PreferencesInternal.DeleteKey(PreferenceKeys.pbIconGUI); PreferencesInternal.DeleteKey(PreferenceKeys.pbShiftOnlyTooltips); PreferencesInternal.DeleteKey(PreferenceKeys.pbDrawAxisLines); PreferencesInternal.DeleteKey(PreferenceKeys.pbElementSelectIsHamFisted); PreferencesInternal.DeleteKey(PreferenceKeys.pbCollapseVertexToFirst); PreferencesInternal.DeleteKey(PreferenceKeys.pbMeshesAreAssets); PreferencesInternal.DeleteKey(PreferenceKeys.pbDragSelectWholeElement); PreferencesInternal.DeleteKey(PreferenceKeys.pbEnableExperimental); PreferencesInternal.DeleteKey(PreferenceKeys.pbFillHoleSelectsEntirePath); PreferencesInternal.DeleteKey(PreferenceKeys.pbDetachToNewObject); PreferencesInternal.DeleteKey(PreferenceKeys.pbPreserveFaces); PreferencesInternal.DeleteKey(PreferenceKeys.pbVertexHandleSize); PreferencesInternal.DeleteKey(PreferenceKeys.pbUVGridSnapValue); PreferencesInternal.DeleteKey(PreferenceKeys.pbUVWeldDistance); PreferencesInternal.DeleteKey(PreferenceKeys.pbWeldDistance); PreferencesInternal.DeleteKey(PreferenceKeys.pbExtrudeDistance); PreferencesInternal.DeleteKey(PreferenceKeys.pbBevelAmount); PreferencesInternal.DeleteKey(PreferenceKeys.pbEdgeSubdivisions); PreferencesInternal.DeleteKey(PreferenceKeys.pbDefaultShortcuts); PreferencesInternal.DeleteKey(PreferenceKeys.pbDefaultMaterial); PreferencesInternal.DeleteKey(PreferenceKeys.pbGrowSelectionUsingAngle); PreferencesInternal.DeleteKey(PreferenceKeys.pbGrowSelectionAngle); PreferencesInternal.DeleteKey(PreferenceKeys.pbGrowSelectionAngleIterative); PreferencesInternal.DeleteKey(PreferenceKeys.pbShowDetail); PreferencesInternal.DeleteKey(PreferenceKeys.pbShowOccluder); PreferencesInternal.DeleteKey(PreferenceKeys.pbShowMover); PreferencesInternal.DeleteKey(PreferenceKeys.pbShowCollider); PreferencesInternal.DeleteKey(PreferenceKeys.pbShowTrigger); PreferencesInternal.DeleteKey(PreferenceKeys.pbShowNoDraw); PreferencesInternal.DeleteKey(PreferenceKeys.pbShowMissingLightmapUvWarning); PreferencesInternal.DeleteKey(PreferenceKeys.pbManageLightmappingStaticFlag); PreferencesInternal.DeleteKey(PreferenceKeys.pbShadowCastingMode); PreferencesInternal.DeleteKey(PreferenceKeys.pbDefaultStaticFlags); PreferencesInternal.DeleteKey(PreferenceKeys.pbShowPreselectionHighlight); PreferencesInternal.DeleteKey("ProBuilder_AboutWindowIdentifier"); PreferencesInternal.DeleteKey("pb_UVTemplate_imageSize"); PreferencesInternal.DeleteKey("pb_UVTemplate_lineColor"); PreferencesInternal.DeleteKey("pb_UVTemplate_backgroundColor"); PreferencesInternal.DeleteKey("pb_UVTemplate_transparentBackground"); PreferencesInternal.DeleteKey("pb_UVTemplate_hideGrid"); PreferencesInternal.DeleteKey("pb_Log::m_LogFilePath"); PreferencesInternal.DeleteKey("pb_Log::m_Output"); PreferencesInternal.DeleteKey("pb_Log::m_LogLevel"); PreferencesInternal.DeleteKey("pb_SmoothingGroupEditor::m_ShowPreview"); PreferencesInternal.DeleteKey("pb_SmoothingGroupEditor::m_DrawNormals"); PreferencesInternal.DeleteKey("pb_SmoothingGroupEditor::m_NormalsSize"); PreferencesInternal.DeleteKey("pb_SmoothingGroupEditor::m_PreviewOpacity"); PreferencesInternal.DeleteKey("pb_SmoothingGroupEditor::m_PreviewDither"); PreferencesInternal.DeleteKey("pbDefaultExportFormat"); PreferencesInternal.DeleteKey("pbExportRecursive"); PreferencesInternal.DeleteKey("pbExportAsGroup"); PreferencesInternal.DeleteKey("pbObjExportRightHanded"); PreferencesInternal.DeleteKey("pbObjApplyTransform"); PreferencesInternal.DeleteKey("pbObjExportCopyTextures"); PreferencesInternal.DeleteKey("pbObjExportVertexColors"); PreferencesInternal.DeleteKey("pbObjTextureOffsetScale"); PreferencesInternal.DeleteKey("pbObjQuads"); PreferencesInternal.DeleteKey("pbStlFormat"); PreferencesInternal.DeleteKey("pbPlyExportIsRightHanded"); PreferencesInternal.DeleteKey("pbPlyApplyTransform"); PreferencesInternal.DeleteKey("pbPlyQuads"); PreferencesInternal.DeleteKey("pbPlyNGons"); #pragma warning restore 612, 618 }
public static void ResetToDefaults() { if (UnityEditor.EditorUtility.DisplayDialog("Delete ProBuilder editor preferences?", "Are you sure you want to delete all existing ProBuilder preferences?\n\nThis action cannot be undone.", "Yes", "No")) { PreferencesInternal.DeleteKey(PreferenceKeys.pbDefaultEditLevel); PreferencesInternal.DeleteKey(PreferenceKeys.pbDefaultSelectionMode); PreferencesInternal.DeleteKey(PreferenceKeys.pbHandleAlignment); PreferencesInternal.DeleteKey(PreferenceKeys.pbVertexColorTool); PreferencesInternal.DeleteKey(PreferenceKeys.pbToolbarLocation); PreferencesInternal.DeleteKey(PreferenceKeys.pbDefaultEntity); PreferencesInternal.DeleteKey(PreferenceKeys.pbUseUnityColors); PreferencesInternal.DeleteKey(PreferenceKeys.pbLineHandleSize); PreferencesInternal.DeleteKey(PreferenceKeys.pbWireframeSize); PreferencesInternal.DeleteKey(PreferenceKeys.pbSelectedFaceColor); PreferencesInternal.DeleteKey(PreferenceKeys.pbWireframeColor); PreferencesInternal.DeleteKey(PreferenceKeys.pbPreselectionColor); PreferencesInternal.DeleteKey(PreferenceKeys.pbSelectedFaceDither); PreferencesInternal.DeleteKey(PreferenceKeys.pbSelectedVertexColor); PreferencesInternal.DeleteKey(PreferenceKeys.pbUnselectedVertexColor); PreferencesInternal.DeleteKey(PreferenceKeys.pbSelectedEdgeColor); PreferencesInternal.DeleteKey(PreferenceKeys.pbUnselectedEdgeColor); PreferencesInternal.DeleteKey(PreferenceKeys.pbDefaultOpenInDockableWindow); PreferencesInternal.DeleteKey(PreferenceKeys.pbEditorPrefVersion); PreferencesInternal.DeleteKey(PreferenceKeys.pbEditorShortcutsVersion); PreferencesInternal.DeleteKey(PreferenceKeys.pbDefaultCollider); PreferencesInternal.DeleteKey(PreferenceKeys.pbForceConvex); PreferencesInternal.DeleteKey(PreferenceKeys.pbVertexColorPrefs); PreferencesInternal.DeleteKey(PreferenceKeys.pbShowEditorNotifications); // //#pragma warning disable 612 PreferencesInternal.DeleteKey(PreferenceKeys.pbDragCheckLimit); // #pragma warning restore 612 PreferencesInternal.DeleteKey(PreferenceKeys.pbForceVertexPivot); PreferencesInternal.DeleteKey(PreferenceKeys.pbForceGridPivot); PreferencesInternal.DeleteKey(PreferenceKeys.pbManifoldEdgeExtrusion); PreferencesInternal.DeleteKey(PreferenceKeys.pbPerimeterEdgeBridgeOnly); PreferencesInternal.DeleteKey(PreferenceKeys.pbPBOSelectionOnly); PreferencesInternal.DeleteKey(PreferenceKeys.pbCloseShapeWindow); PreferencesInternal.DeleteKey(PreferenceKeys.pbUVEditorFloating); PreferencesInternal.DeleteKey(PreferenceKeys.pbUVMaterialPreview); // #pragma warning disable 612 PreferencesInternal.DeleteKey(PreferenceKeys.pbShowSceneToolbar); // #pragma warning restore 612 PreferencesInternal.DeleteKey(PreferenceKeys.pbNormalizeUVsOnPlanarProjection); // #pragma warning disable 618 PreferencesInternal.DeleteKey(PreferenceKeys.pbStripProBuilderOnBuild); PreferencesInternal.DeleteKey(PreferenceKeys.pbDisableAutoUV2Generation); // #pragma warning restore 618 PreferencesInternal.DeleteKey(PreferenceKeys.pbShowSceneInfo); PreferencesInternal.DeleteKey(PreferenceKeys.pbEnableBackfaceSelection); PreferencesInternal.DeleteKey(PreferenceKeys.pbVertexPaletteDockable); PreferencesInternal.DeleteKey(PreferenceKeys.pbExtrudeAsGroup); PreferencesInternal.DeleteKey(PreferenceKeys.pbUniqueModeShortcuts); PreferencesInternal.DeleteKey(PreferenceKeys.pbMaterialEditorFloating); PreferencesInternal.DeleteKey(PreferenceKeys.pbShapeWindowFloating); PreferencesInternal.DeleteKey(PreferenceKeys.pbIconGUI); PreferencesInternal.DeleteKey(PreferenceKeys.pbShiftOnlyTooltips); // #pragma warning disable 612 PreferencesInternal.DeleteKey(PreferenceKeys.pbDrawAxisLines); PreferencesInternal.DeleteKey(PreferenceKeys.pbElementSelectIsHamFisted); // #pragma warning restore 612 PreferencesInternal.DeleteKey(PreferenceKeys.pbCollapseVertexToFirst); PreferencesInternal.DeleteKey(PreferenceKeys.pbMeshesAreAssets); // #pragma warning disable 618 PreferencesInternal.DeleteKey(PreferenceKeys.pbDragSelectWholeElement); // #pragma warning restore 618 PreferencesInternal.DeleteKey(PreferenceKeys.pbEnableExperimental); PreferencesInternal.DeleteKey(PreferenceKeys.pbFillHoleSelectsEntirePath); PreferencesInternal.DeleteKey(PreferenceKeys.pbDetachToNewObject); // #pragma warning disable 618 PreferencesInternal.DeleteKey(PreferenceKeys.pbPreserveFaces); // #pragma warning restore 618 PreferencesInternal.DeleteKey(PreferenceKeys.pbVertexHandleSize); PreferencesInternal.DeleteKey(PreferenceKeys.pbUVGridSnapValue); PreferencesInternal.DeleteKey(PreferenceKeys.pbUVWeldDistance); PreferencesInternal.DeleteKey(PreferenceKeys.pbWeldDistance); PreferencesInternal.DeleteKey(PreferenceKeys.pbExtrudeDistance); PreferencesInternal.DeleteKey(PreferenceKeys.pbBevelAmount); PreferencesInternal.DeleteKey(PreferenceKeys.pbEdgeSubdivisions); PreferencesInternal.DeleteKey(PreferenceKeys.pbDefaultShortcuts); PreferencesInternal.DeleteKey(PreferenceKeys.pbDefaultMaterial); PreferencesInternal.DeleteKey(PreferenceKeys.pbGrowSelectionUsingAngle); PreferencesInternal.DeleteKey(PreferenceKeys.pbGrowSelectionAngle); PreferencesInternal.DeleteKey(PreferenceKeys.pbGrowSelectionAngleIterative); PreferencesInternal.DeleteKey(PreferenceKeys.pbShowDetail); PreferencesInternal.DeleteKey(PreferenceKeys.pbShowOccluder); PreferencesInternal.DeleteKey(PreferenceKeys.pbShowMover); PreferencesInternal.DeleteKey(PreferenceKeys.pbShowCollider); PreferencesInternal.DeleteKey(PreferenceKeys.pbShowTrigger); PreferencesInternal.DeleteKey(PreferenceKeys.pbShowNoDraw); PreferencesInternal.DeleteKey(PreferenceKeys.pbShowMissingLightmapUvWarning); // #pragma warning disable 612 PreferencesInternal.DeleteKey(PreferenceKeys.pbManageLightmappingStaticFlag); // #pragma warning restore 612 PreferencesInternal.DeleteKey(PreferenceKeys.pbShadowCastingMode); PreferencesInternal.DeleteKey(PreferenceKeys.pbDefaultStaticFlags); PreferencesInternal.DeleteKey(PreferenceKeys.pbShowPreselectionHighlight); } s_PrefsLoaded = false; LoadPrefs(); }