Commit 2cc01a53 authored by SherryChaos's avatar SherryChaos

fix quality setting bug

parent 14860ad6
This diff is collapsed.
fileFormatVersion: 2
guid: 9a6159d3bd0efc74b83d3a84f12f06c5
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -61436,7 +61436,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0.000030517578}
m_SizeDelta: {x: 0, y: 300}
m_Pivot: {x: 0.5, y: 1}
--- !u!1 &1117266860
......@@ -87,7 +87,7 @@ namespace MDPro3
Program.I().camera_.cameraMain.gameObject.SetActive(true);
Program.I().camera_.light.SetActive(true);
Program.I().camera_.camera2D.gameObject.SetActive(false);
QualitySettings.SetQualityLevel(int.Parse(Config.Get("Quality", "0")));
QualitySettings.SetQualityLevel((int)Config.GetFloat("Quality", 2f));
}
public static void Overlay3DReset()
{
......
......@@ -466,7 +466,7 @@ namespace MDPro3
qualityText = InterString.Get("中等");
break;
}
Config.Set("Quality", ((int)value).ToString());
Config.SetFloat("Quality", (int)value);
qualityValue.text = qualityText;
}
public void OnFAAChange(float value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment