Search Unity

Detail Inputs BaseMap and NormalMap visible in material inspector and invisible in Scene and Game

Discussion in 'Addressables' started by nauroman, Jan 17, 2021.

  1. nauroman

    nauroman

    Joined:
    Nov 1, 2014
    Posts:
    13
    Windows 10 Home 19042.746
    Unity 2020.2.1f1
    Universal RP 10.2.2
    Adressables 1.16.15 (and 1.17.2-preview)
    Build Settings / Target Platform - Windows x86

    URP/Lit material

    Using Addressable Groups / any mode

    1.
    material.SetTexture("[COLOR=#336600]_BaseMap[/COLOR]", loaded.Asset as Texture);

    2. GameObject in Scene shows BaseMap Texture. All works fine.

    Using Addressable Groups / Play Mode Script / Use Asset Database or Simulate Groups

    1.
    material.SetTexture("_DetailAlbedoMap", loaded.Asset as Texture);

    2. GameObject in Scene doesn't show Detail Inputs / BaseMap texture.
    3. Click on this object in Hierarchy view.
    4. Click Material (Instance) (Material) in Material Inspector.
    5. GameObject in Scene shows Detail Inputs / BaseMap texture.

    Using Addressable Groups / Play Mode Script / Use Existing Build

    1.
    material.SetTexture("_DetailAlbedoMap", loaded.Asset as Texture);

    2. GameObject in Scene doesn't show Detail Inputs / BaseMap texture.
    3. Click on this object in Hierarchy view.
    4. Click Material (Instance) (Material) in Material Inspector.
    5. Material Inspector shows correct Detail Inputs / BaseMap texture icon.
    6. GameObject in Scene doesn't show Detail Inputs / BaseMap texture.

    The same issue for Normal Map / Detail Inputs Normal Map.