Search Unity

Question PBR material from the asset bundle differs from the original

Discussion in 'Asset Bundles' started by str3lok, Nov 5, 2021.

  1. str3lok

    str3lok

    Joined:
    May 27, 2012
    Posts:
    24
    Platform: Android.
    PBR materials are used in the scene. The scene is added to the bundle via the BuildPipeline.BuildStreamedSceneAssetBundle().
    In the editor, the scene looks like this: https://imgbox.com/06LdzF4a
    It can be seen that there is the specular on the preview of the material, and that it is on the stage.

    After loading a scene from a bundle in another project: https://imgbox.com/t5S664xy
    The specular had disappeared somewhere (to be more precise, it's as if "Specular Highlights" or "Reflections" on the material is turned off).

    How to fix it?

    If I just transfer the whole scene to a new project (Android) and launch it, then there is a specular. If I'm in the same project, loading the same bundle, then the materials are also loaded without specular. It feels like when adding a scene to a bundle, Unity facilitates this pbr shader for android.
     
    Last edited: Nov 9, 2021