- Home /
Question by
vitorbarbosa · Nov 27, 2018 at 08:42 PM ·
dlldllimport
Load DLL for specific Unity version
I have two DLLs: one only works on Unity 2018 and the other only works on Unity 2017. Is there any way I can have both DLLs in my project, but only the DLL that matches the current Unity version gets loaded?
Thanks in advance.
Comment
Why?
Change the file extention of the files to something unused and create a custom importer that changes the relevant one back to .dll and let the default importer take over.
If you have the source of the dlls use compiler directives.
Create a custom editor script to hide or delete the irrelevant one. There would be an error fest prior execution though.