- Home /
Question by
v_gasan_daqri · Dec 14, 2016 at 01:04 PM ·
unity 5scripting problemunityeditorapiplayer settings
How can I change ApiCompatibilityLevel before Unity start?
I want to upload a couple of DLL before Unity launch but the depend on .NET 2.0, not subnet of .NET 2.0, so I run this script:
UnityEditor.PlayerSettings.apiCompatibilityLevel = UnityEditor.ApiCompatibilityLevel.NET_2_0;
The problem is that I need this to be changed before Unity fully launches, since my dependent DLLs will fail to load if I don't change it. [InitializeOnLoad] did not help.
Comment