赞
踩
Edit->Project Settings->Quality
- void Update ()
- {
- if (Input.GetKeyDown(KeyCode.Alpha1))
- QualitySettings.SetQualityLevel(0, true);
- else if (Input.GetKeyDown(KeyCode.Alpha2))
- QualitySettings.SetQualityLevel(1, true);
- else if (Input.GetKeyDown(KeyCode.Alpha3))
- QualitySettings.SetQualityLevel(2, true);
- else if (Input.GetKeyDown(KeyCode.Alpha4))
- QualitySettings.SetQualityLevel(3, true);
- else if (Input.GetKeyDown(KeyCode.Alpha5))
- QualitySettings.SetQualityLevel(4, true);
- else if (Input.GetKeyDown(KeyCode.Alpha6))
- QualitySettings.SetQualityLevel(5, true);
- }
0-5分别对应着面板由上而下的质量等级
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。