Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Exclude folders from Unity Cloud Build?

Discussion in 'Unity Build Automation' started by eppz, Aug 21, 2018.

  1. eppz

    eppz

    Joined:
    Aug 2, 2014
    Posts:
    172
    What is the preferred way to exclude specific folders from Unity Cloud Build?

    ---

    We have a JavaScript sub-project, that is pretty convenient to have it in the Assets folder (to match APIs easily, also for version control). We have successfully excluded it from the entire Unity project by suffixing the folder with `~` (see https://twitter.com/_eppz/status/942815105804374016).

    But the files get picked up by Unity Cloud Build.

    I contacted the team about using `.collabignore` file, but it only works if we use Collab to grab files for Unity Cloud Build. I'm not sure (yet), but it seems we simply checkout the project using Git.

    The Unity Cloud Build team suggested me to use a Pre-Export hook (https://docs.unity3d.com/Manual/UnityCloudBuildPreAndPostExportMethods.html), but I'm not quite sure how to use it to manage excluding folders / files.

    Can someone help me out with a working solution?