I have a DLL (let's call it A.dll) that depends on another DLL (let's call it B.dll) that has two different versions, one for mobile and one for standalone. I want unity to choose the correct B.dll for the build.
My current file structure for my project is something like
-Assets
-Libs
-A.dll //depends on B.dll
-B.dll //this has it's platform settings set to standalone targets
-MobileLibs
-B.dll //this has it's platform settings set to mobile targets
I've set the target platforms in their respective inspectors to be mutually exclusive so there is no name clash when I run the game in the editor but it always uses the standalone B.dll even when I set the player to a Mobile platform. Even worse, if I delete the standalone version of the B.dll, it can't find the other B.dll that is in the MobileLibs folder.
How can I get this to work? Are there any special folders I need to put these into? I've tried renaming the folder Plugins but that didn't seem to make a difference either.
These are C# libraries built using MonoDevelop if that helps.
↧