Search Unity

shader.name is blank in Unity 5.5.1

Discussion in 'Scripting' started by MRKane, Feb 14, 2017.

  1. MRKane

    MRKane

    Joined:
    Oct 4, 2012
    Posts:
    54
    Hello all,

    I've upgraded to Unity 5.5.1 and the material.shader.name is now coming through as a blank string for assets loaded from an asset bundle. Previously it returned a string with the shader name.

    Does anyone know if this will be a permanent removal, or if there's another workaround out there for this? Any help is much appreciated.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,736
    I would try with a reimport all, including rebuilding the asset pack, and if it fails, file a bug with Unity.
     
  3. Asse1

    Asse1

    Joined:
    Jan 9, 2013
    Posts:
    89
    Hey, same problem here.

    Did you make any progress?