Search Unity

Question Unity Cloud: How to reimport specific folders with a pre-build script?

Discussion in 'Unity Build Automation' started by RD_Luminous, Feb 10, 2023.

  1. RD_Luminous

    RD_Luminous

    Joined:
    Oct 27, 2021
    Posts:
    2
    I have a project a particular package always has to be manually reimported when pulling the project repo for it to work correctly. This is not an issue for local builds as it is a simple enough operation.

    The issue with cloud builds, is that there does not appear to be a way to do this.

    A clean build results in the same result as pulling the repo from fresh. It still needs a manual reimport of the package afterwards.

    I have attempted to use AssetDatabase class within a pre-export method, but Cloud Builds seem unable to access editor scripts as I just get an error when trying to access it.

    Has anyone encountered a similar issue or have any potential solutions to this issue?
     
  2. phuong_unity

    phuong_unity

    Joined:
    Apr 25, 2018
    Posts:
    52