Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We are updating our Terms of Service for all Unity subscription plans, effective October 13, 2022, to create a more streamlined, user-friendly set of terms. Please review them here: unity.com/legal/terms-of-service.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice
  4. Join us on Thursday, September 29, for a day with Unity's SRP teams here on the forum or on Reddit, and discuss topics around URP, HDRP, and the Scriptable Render Pipeline in general.
    Dismiss Notice

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:
    28,133
    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:
    86
    Hey, same problem here.

    Did you make any progress?
     
unityunity