public void getEditorPref() { string version = InternalEditorUtility.GetFullUnityVersion(); version = version.Substring(0, version.LastIndexOf('.')); originalFilename = ""; orient = EditorPrefs.GetBool("PiXYZ.Orient", false); mapUV = EditorPrefs.GetBool("PiXYZ.MapUV", false); mapUV3dSize = EditorPrefs.GetFloat("PiXYZ.MapUV3dSize", 100.0f); scaleFactor = EditorPrefs.GetFloat("PiXYZ.ScaleFactor", 0.001f); isRightHanded = EditorPrefs.GetBool("PiXYZ.IsRightHanded", true); isZUp = EditorPrefs.GetBool("PiXYZ.IsZUp", true); treeProcess = (TreeProcessType)EditorPrefs.GetInt("PiXYZ.TreeProcess", 0); lodCurrentIndex = EditorPrefs.GetInt("PiXYZ.LODCurrentIndex", 0); lodSettingCount = EditorPrefs.GetInt("PiXYZ.LODSettingCount", 1); useLods = EditorPrefs.GetBool("PiXYZ.UseLods", false); lodsMode = (LODsMode)EditorPrefs.GetInt("PiXYZ.LODsMode", 2); lodSettings = new List <PiXYZLODSettings>(); for (int i = 0; i < lodSettingCount; ++i) { PiXYZLoDSettingsEditor lod = new PiXYZLoDSettingsEditor(); lod.index = i; lod.getEditorPref(); lodSettings.Add(lod); } splitTo16BytesIndex = EditorPrefs.GetBool("PiXYZ.SplitTo16BytesIndex", false); useMergeFinalAssemblies = EditorPrefs.GetBool("PiXYZ.UseMergeFinalAssemblies", false); }