Skip to content

Commit 901d0bc

Browse files
committed
feat: Add param
1 parent d7f9e07 commit 901d0bc

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Assets/JCSUnity/Scripts/Util/JCS_Quality.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,23 @@ public static int ByName(string name)
5050
/// Set the quality level by name.
5151
/// </summary>
5252
public static void SetLevel(string name)
53+
{
54+
SetLevel(name, false);
55+
}
56+
public static void SetLevel(string name, bool applyExpensiveChanges)
5357
{
5458
int level = ByName(name);
5559

56-
SetLevel(level);
60+
SetLevel(level, applyExpensiveChanges);
5761
}
5862
// @compatible
5963
public static void SetLevel(int level)
6064
{
61-
QualitySettings.SetQualityLevel(level);
65+
SetLevel(level, false);
66+
}
67+
public static void SetLevel(int level, bool applyExpensiveChanges)
68+
{
69+
QualitySettings.SetQualityLevel(level, applyExpensiveChanges);
6270
}
6371

6472
/// <summary>

0 commit comments

Comments
 (0)