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 Platform Based build Pipline

Discussion in 'Editor & General Support' started by egutentag, Jun 21, 2023.

  1. egutentag

    egutentag

    Joined:
    Nov 27, 2020
    Posts:
    14
    I have a project that goes to different platforms and different types of builds.

    I want to have a feature flag that for example makes prefab use material 1 instate of material2, the reason I want it on the build pipeline is I don't want all the textures that I don't use to go to the Android build and bulk it or mess with the batching.
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    3,899
    You don't want to manage this in the build pipeline. Look into Asset Bundles to create bundles of assets for specific platforms.
     
  3. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,563
    The more-modern approach is a wrapper on Asset Bundles called the Addressables system.

    It seems like it might be slightly-easier to tune it for OP's original intent.