Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Shader variants collection within asset bundle

Discussion in 'Open Projects' started by studentutu, Feb 9, 2021.

  1. studentutu

    studentutu

    Joined:
    Oct 22, 2017
    Posts:
    128
    In the past - whenever you tried to use a real Android bundle on a PC to check that - it will throw shader errors in the scene loaded from that bundle (Pink shader).

    With addressable, it should be easier, but the thing is - addressable uses the same asset bundle approach with scene and data.

    Create a shader variant collection in the editor. Mark it to use for addresables scene. Inside the runtime - use shader variant collection from asset bundle.

    So, given an a shader variant which you would like to use inside the app, that goes into a bundle, will it breaks when used from the bundle?