Search Unity

Shaders used on asset bundle prefabs still broken on unity 2018.2.2f1

Discussion in 'Asset Bundles' started by tomzigza, Aug 13, 2018.

  1. tomzigza

    tomzigza

    Joined:
    Aug 4, 2017
    Posts:
    31
    My configuration:
    Project settings-> always present shaders contains my shaders
    Shader location->Resources folder
    Prefabs that use the shaders->In an asset bundle(Spine animation).

    When I run on device its fine, but when I run on unity editor the shaders have to have to be reassigned before they render correctly. I saw a lot of google history about this but it was from a long time ago.

    Does anyone know how to avoid this?

    Edit: I also noticed that text mesh pro fonts from bundles have to be reconnected as well, also working fine on device...
     
    Last edited: Aug 13, 2018
  2. Ryanc_unity

    Ryanc_unity

    Unity Technologies

    Joined:
    Jul 22, 2015
    Posts:
    332
    In your case: "works on device, but not in the editor" it sounds like you are using device specific (ios, android, etc) asset bundles and trying to load them into the editor. This is not supported as shaders (and other assets) are platform specific. You will need to build an asset bundle for your editor's platform (windows, linux, mac) and use that in the editor instead.