Search Issue Tracker

Fixed in 10.4.X

Fixed in 10.3.2

Votes

33

Found in [Package]

10.1.0

Issue ID

1309219

Regression

Yes

[ShaderGraph] Undeclared identifier 'UnityBuildTexture2DStructNoScale' errors when using a Sample Texture 2D node in a VFX SG.

Package: Visual Effect Graph

-

Repro steps:
1. Import the attached project
2. Open the repro scene and observe the errors
3. Open the ShaderGraph and disconnect the Sample Texture 2D node
4. Observe the errors disappear.

  1. Response avatar

    Resolution Note (fix version 10.4):

    Fixed in: 2021.2.0a9

Comments (10)

  1. 55fdb14753abb88f9c3e559400274541?d=mm

    videon

    Mar 25, 2021 19:53

    Issue was fixed but came back in 2021.1!

  2. Ff44d53034f28444284f975b4c8f52cf?d=mm

    blankkeys

    Mar 25, 2021 12:17

    Still getting this error in 2021.1

  3. 631f2337f449e404109c117383c86c96?d=mm

    Euri

    Mar 02, 2021 07:18

    A similar error appears if I use a "Smapler State" node.

  4. 631f2337f449e404109c117383c86c96?d=mm

    Euri

    Mar 02, 2021 07:01

    The issue is fixed for me on Unity 2020.2.5f1 and VFX graph version 10.3.2

  5. B02f351dce1394ad221004d3258e3b27?d=mm

    Pixelatex

    Feb 24, 2021 16:59

    Same issue here with the creator kit default project using 2020.2.6f1

  6. 0f188ed3c5f56171f0806dcc1a5c8498?d=mm

    VVad

    Feb 22, 2021 17:08

    same here , Shader Graph=10.3.1, URP=10.3.1 and VFX Graph =10.3.1 , with Unity 2020.2.4f1

  7. 9509155bd1cc483141fc1a6a12577a52?d=mm

    Whipexx_WildFrame

    Feb 17, 2021 13:44

    Can confirm that this appeared when updating to 2020.2.4, wasn't happening in 2020.2.2.

  8. Bfd57ca4efdf5bda027cb9f21d660937?d=mm

    ScottJak

    Feb 16, 2021 19:07

    BTW Output Particle Quad was the offending node for me.

  9. Bfd57ca4efdf5bda027cb9f21d660937?d=mm

    ScottJak

    Feb 16, 2021 18:55

    Issue is with UnityTexture2D for me, but might be the same cause. Texture2DShaderProperty.cs's GetPropertyAsArgumentString() is returning "UnityTexture2D " + referenceName. Should that maybe just be Texture2D?

  10. Adf444dd4c8c1844a35c5aed4b97aea8?d=mm

    HakJak

    Feb 16, 2021 18:07

    Dear Unity gods, I have given 1 precious upvote. Please accept this sacrifice and answer our prayers. Amen.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.