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 have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Bug 10.2.2 Cannot Access Property Reference in Shader Graph Editor to Set to _MainTex

Discussion in 'Shader Graph' started by seloran, Jan 25, 2021.

  1. seloran

    seloran

    Joined:
    Mar 8, 2020
    Posts:
    42
    I was following a tutorial and am stuck because I can't make a Material with a _MainTex texture property which is required for SpriteRenderer according to a warning shown when I select the material for use.

    Please see the attached screenshot showing that I can only see the property name and rename it but cannot see the details of a property like reference etc in the shader graph editor.

    I have URP and Shader Graph 10.2.2 installed.
     

    Attached Files:

    Last edited: Jan 26, 2021
    partridge likes this.
  2. brn_ghs

    brn_ghs

    Joined:
    Jul 22, 2018
    Posts:
    18
    I'm with the same problem
     
  3. Peeling

    Peeling

    Joined:
    Nov 10, 2013
    Posts:
    401
    Yep, same here. Not COMPLETELY stuck, but I'm having to log out the Texture2D_304509809fg9823498 guids and take random stabs at which it is I want in code.

    EDIT: You can work around it by opening up the shadergraph file in a text editor and searching for the 'friendly' name of the property. You'll find something like this, and can inject your own override:

    Code (CSharp):
    1.     "m_Name": "_WebTexNormAlpha",
    2.     "m_DefaultReferenceName": "Texture2D_489de990d53d4b41983c46352452364d",
    3.     "m_OverrideReferenceName": "_WebTexNormAlpha",
     
  4. Intho

    Intho

    Joined:
    Jul 15, 2017
    Posts:
    1
    Its not really apparent right now, but you can still access the property settings from the "Graph Inspector" window.

    1. select your texture2d property
    2. click "Node settings" tab in the graph inspector
     

    Attached Files:

    Last edited: Feb 15, 2021
  5. puertoroc4706

    puertoroc4706

    Joined:
    Jul 24, 2021
    Posts:
    1
    Thank you