Search Unity

I cant perform any action after I rename property in shader graph window

Discussion in 'Editor & General Support' started by alussam, Sep 1, 2019.

  1. alussam

    alussam

    Joined:
    May 13, 2018
    Posts:
    15
    Hello, got some trouble, after I create and rename property in shader graph window I cant perform any action. The only thing I can do is save asset and leave window. If I just create property- there is no trouble, but if I rename it- it is. I use unity 2019.2.3f1. In Unity 2018.3 it worked well. Watch video please for to see what happens:


    I hope this trouble is easy to solve) Thanks!
     
  2. shiena

    shiena

    Joined:
    May 19, 2017
    Posts:
    44
    hhsaez likes this.
  3. alussam

    alussam

    Joined:
    May 13, 2018
    Posts:
    15
  4. shiena

    shiena

    Joined:
    May 19, 2017
    Posts:
    44
  5. AlexTuduran

    AlexTuduran

    Joined:
    Nov 26, 2016
    Posts:
    27
    Off-topic: When you add a variable on the blackboard, make sure you also rename the reference and not just leave shader graph assign an automatic name like "Vector1_F1D6E0A9". If your variable name is "Distortion Amount", the reference name should be called "_DistortionAmount".

    Not only it keeps things consistent, but this is actually the name that is used in the serialized material file and if something goes bad, you would rather want to look in the .mat file for "_DistortionAmount" and not some cryptic name like "Vector2_F1D6E0A9".