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

Include custom shaders with assetbundles?

Discussion in 'Editor & General Support' started by CloudyVR, Feb 22, 2020.

  1. CloudyVR

    CloudyVR

    Joined:
    Mar 26, 2017
    Posts:
    709
    I have several assetbundles that I have added custom shaders to.

    But when I build the assetbundles and load them in my game the models are pink - so the shaders are missing.

    I thought I had read somewhere that Unity can pack shaders directly into the assetbundles, but I have not found a way to do this.

    Am I mistaken? Is it possible for a Unity game to load custom shaders from asset bundles at runtime?

    This is very urgent and any advice would be greatly appreciated.
     
  2. rstorm000

    rstorm000

    Joined:
    Aug 19, 2010
    Posts:
    228
    Also looking for this, it worked fine in 5.6 .
     
  3. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,713