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 ?

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.