Skip to content

Commit 00fa0d3

Browse files
authored
fix: compile error on Unity 2021.2 or earlier (#753)
`Enum.TryParse(Type, string, bool, out Enum)` method requires .netstandard 2.1 close #752
1 parent d587557 commit 00fa0d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dist/default-build-script/Assets/Editor/UnityBuilderAction/Input/AndroidSettings.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ public static void Apply(Dictionary<string, string> options)
115115
}
116116
}
117117

118+
#if UNITY_6000_0_OR_NEWER
118119
private static void SetDebugSymbols(string enumValueName)
119120
{
120121
// UnityEditor.Android.UserBuildSettings and Unity.Android.Types.DebugSymbolLevel are part of the Unity Android module.
@@ -144,5 +145,6 @@ private static void SetDebugSymbols(string enumValueName)
144145
}
145146
levelProp.SetValue(null, enumValue);
146147
}
148+
#endif
147149
}
148150
}

0 commit comments

Comments
 (0)