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

`Enum.TryParse(Type, string, bool, out Enum)` method requires .netstandard 2.1
close #752
This commit is contained in:
mob-sakai
2025-10-12 02:01:45 +09:00
committed by GitHub
parent d587557287
commit 00fa0d3772

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
}
}