Search Unity

Question Asset bundle model lighting issue

Discussion in 'Asset Bundles' started by ranch000, Jul 17, 2020.

  1. ranch000

    ranch000

    Joined:
    Mar 24, 2017
    Posts:
    18
    Hi, I have an app that is a collection of multiple mini games that are downloaded on demand as assetbundles. In one of them, I am facing a lighting issue in few of the models. Attached are screenshot comparisons when running the mini game as assetbundle vs individual project.

    Player models appear dark in android build, downloaded as asset bundle
    2.png

    Player models appear as expected when ran in the individual game project
    1.png


    I haved tried the following without any success:

    -Changing the lightmap settings as per individual project
    -Changing the materials' shaders in runtime
    -Changing Quality settings
    -Including the particular shaders in graphic settings
    -Applying layers and changing directional light culling mask to these layers

    (Unity version 2018.3.5)
    Been stuck on this issue for a while now. Any help would be appreciated.

    Edit:
    Seem to be getting these errors

    07-17 18:12:01.176 29513 29547 D Unity : WARNING: Shader
    07-17 18:12:01.176 29513 29547 D Unity : Unsupported: 'Standard' - Pass 'META' has no vertex shader
    07-17 18:12:01.176 29513 29547 D Unity : WARNING: Shader
    07-17 18:12:01.176 29513 29547 D Unity : Unsupported: 'Standard' - Pass 'META' has no vertex shader
    07-17 18:12:01.226 29513 29547 D Unity : WARNING: Shader
    07-17 18:12:01.227 29513 29547 D Unity : Unsupported: 'Mobile/Diffuse' - Pass 'Meta' has no vertex shader
    07-17 18:12:01.277 29513 29547 D Unity : WARNING: Shader
    07-17 18:12:01.277 29513 29547 D Unity : Unsupported: 'Hidden/MK/Toon/FreeMobileCricket' - Pass 'META' has no vertex shader
    07-17 18:12:01.305 29513 29547 D Unity : WARNING: Shader
    07-17 18:12:01.305 29513 29547 D Unity : Unsupported: 'MK/Toon/FreeCricket' - Pass 'META' has no vertex shader
     
    Last edited: Jul 20, 2020