- Home /
Question by
waspfarmer2 · May 29, 2013 at 01:24 PM ·
buildwebplayercompilernative pluginpreprocessor
Omit files based on build type
Hi All,
We are looking to support multiple platforms including a webplayer version, we have native enhancements for the other platforms. Obviously we cannot include these native plugin dlls when building for webplayer, out of convenience is there anyway automatically that we can omit certain files based on build target ?
Comment
Answer by Graham-Dunnett · May 29, 2013 at 02:28 PM
Yes, typically you'd create your own menu item, using editor scripting, move files around using basic .Net code, and then call into one of the `BuildPipeline` APIs. Then you'd put the files back.
Note that plugins will always be excluded when building a webplayer, so Unity takes care of that for you.