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.
  2. Dismiss Notice

Question How to include unitybuiltinshaders.bundle to build

Discussion in 'Addressables' started by magister_yoda_, Sep 14, 2023.

  1. magister_yoda_

    magister_yoda_

    Joined:
    Mar 27, 2016
    Posts:
    31
    In my game I have two addressable groups, Local and Remote. When I build addressables, several bundles are created in the folder ServerData(remote assets) and besides there is a bundle unitybuiltinshaders.bundle. At the game first start I don't use my Remote assets, but some local assets (i think so) use the unitybuiltinshaders. And If I don't have internet connection, my local assets cannot be loaded because of the exception like "Cannot load content ... builtinshaders... " etc. because there are using unitybuiltinshaders and it's built as remote content.
    I want to built this bundle (unitybuiltinshaders.bundle) locally. How can I include it to my game build?
     
  2. magister_yoda_

    magister_yoda_

    Joined:
    Mar 27, 2016
    Posts:
    31
    @andymilsom couldn't you check this question?
     
  3. Alan-Liu

    Alan-Liu

    Joined:
    Jan 23, 2014
    Posts:
    346
    According to the documentation:
    If you set the default group to use local build and load paths, the unitybuiltinshaders.bundle will be included in the game build.