fix: compile error on Unity 2021.2 or earlier (#753)

`Enum.TryParse(Type, string, bool, out Enum)` method requires .netstandard 2.1
close #752
pull/735/head^2
mob-sakai 2025-10-12 02:01:45 +09:00 committed by GitHub
parent d587557287
commit 00fa0d3772
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -115,6 +115,7 @@ namespace UnityBuilderAction.Input
}
}
#if UNITY_6000_0_OR_NEWER
private static void SetDebugSymbols(string enumValueName)
{
// UnityEditor.Android.UserBuildSettings and Unity.Android.Types.DebugSymbolLevel are part of the Unity Android module.
@ -144,5 +145,6 @@ namespace UnityBuilderAction.Input
}
levelProp.SetValue(null, enumValue);
}
#endif
}
}