Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

► Exclude files, objects, components from build ◄

Discussion in 'Assets and Asset Store' started by _geo__, May 27, 2022.

  1. _geo__

    _geo__

    Joined:
    Feb 26, 2014
    Posts:
    540
    Hi all,
    I have made an asset which allows you to exclude anything from your build (file, folder, script, GameObject, Component). It's super easy (just right-click and hit "exclude from build").

    ExcludeFromBuildTeaser.gif

    > Asset Store Page <
    https://assetstore.unity.com/packages/slug/222357
    Full Source Code included.

    Here is the thread which triggered me to grow my home made tool into a full featured asset:
    https://forum.unity.com/threads/excluding-folders-from-build.408375/page-2

    Features
    > Can exclude any file (yes scripts files too), GameObjects or Components
    > Test Mode (allows you to see your changes withou having to start a build)
    > Allows you to make multiple configurations per platform (called "groups")
    > FullSource code included
    > Overview window with handy shortcuts (so you always know which things are excluded and where to find them). You can also scan scenes for excluded objects or components.

    ExcludeFromBuildWindow.png
    If you want to know more then here is the manual (pdf):
    https://kamgam.com/unity/ExcludeFromBuildManual.pdf

    Hope you'll find it useful :)
     
unityunity