fix: compile error on Unity 2021.2 or earlier

`Enum.TryParse(Type, string, bool, out Enum)` method requires .netstandard 2.1
close #752
pull/753/head
mob-sakai 2025-10-12 00:30:57 +09:00
parent d587557287
commit a6b9c3b07b
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
}
}