- Home /
Ignore plugin dll when building webplayer version
I'm creating a game in which I'm using a seperate scene for the server and login. The server scene uses a C++ dll for connection so I need to keep the dll in the plugin folder. However the webplayer does not use the dll but it still attempts to link it when I build. I have to manually remove the dll from the directory each time I want to build the web player. Is there a way to tell unity to ignore the dll when the target is a web player?
_miek
Answer by Clem · Apr 26, 2011 at 07:53 AM
I am not aware of any way to tell Unity to exclude a specific dll when the target is the web player.
One thing you could possibly do is write an editor script that changes the extension of the dll before building the player.
string newPath = Path.ChangeExtension(dllPath, ".old");
BuildPipeline.BuildPlayer(...);
string newPath = Path.ChangeExtension(newPath , ".dll");
It feels a bit hacky though.
Your answer
Follow this Question
Related Questions
How to update unity web player 1 Answer
Cant link PLUGIN.DLL with PLUGIN-EDITOR.DLL 1 Answer
Unity plugins 0 Answers
Web browser component 0 Answers
Version Not Installed? 1 Answer