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. Dismiss Notice

Question Greyed-out Texture2D field in inspector?

Discussion in 'Shader Graph' started by dgoyette, Aug 25, 2021.

  1. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,120
    Shader Graph 7.7.1. After adding a new Texture2D Parameter to a subgraph, I'm now seeing this on all material inspectors that use this subgraph:

    upload_2021-8-25_1-13-21.png

    Unity's adding this to every material upon looking at the material in the inspector:

    Code (CSharp):
    1.     - _SimpleLitSampler_79D1133D_Texture2DD2CC6C52_1931811911:
    2.         m_Texture: {fileID: 0}
    3.         m_Scale: {x: 1, y: 1}
    4.         m_Offset: {x: 0, y: 0}
    If I edit the subgraph file in a text editor, I find that this is indeed the new Texture2D property just added. However, this property isn't any different than the other few Texture2D parameters I already had in the subgraph, none of which create these inactive entries in the inspector.

    upload_2021-8-25_1-16-54.png

    Any idea what's causing this? I've tried deleting the Texture2D parameter and adding it again, but that just adds yet another entry to the material.
     
  2. YetNeele

    YetNeele

    Joined:
    Dec 12, 2019
    Posts:
    7
    Having the same issue in 2020.3.34f1! Did you ever figure it out?