Add area judge precision settings.

This commit is contained in:
2023-05-14 10:46:32 +08:00
parent c41d41c881
commit 959d07b0a9
2 changed files with 13 additions and 0 deletions

View File

@@ -5,6 +5,17 @@ using RangeAttribute = Cryville.Common.ComponentModel.RangeAttribute;
namespace Cryville.Crtr {
public class Settings {
[Category("gameplay")]
[Range(0f, 10f)][Precision(1)]
public int AreaJudgePrecision {
get {
return PlayerPrefs.GetInt("AreaJudgePrecision", 4);
}
set {
PlayerPrefs.SetInt("AreaJudgePrecision", value);
}
}
[Category("graphics")]
[LogarithmicScale][Range(0.01f, 20f)][Step(1f)][Precision(1e-2)]
public float BackwardClippingDistance {