-
-
Notifications
You must be signed in to change notification settings - Fork 22k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[C#] Custom VisualShaderNodeCustom
scripts are not recognized as shader nodes in Godot 4.2+
#94803
Comments
Does it work with As per the documentation for
Which I think is equivalent to |
I’ve tried using both with no success, I was unsure about the |
CC @raulsntos |
I'm unable to reproduce on v4.2.2.stable.mono.official [15073af] with the As AThousandShips said, the |
Thanks, I tried using both the Tried it with my actual project and can confirm that I need to build (or even rebuild in Rider) and then restart Godot. So there might be some sort of sync error happening? Or hopefully it's just my setup and nothing "major". |
Also, I guess I should update my PR (#94693) to include the |
That's a known bug This should be clarified even further on the documentation, with a C# example along with the GDScript one, but otherwise this has been resolved The demo should be updated as well |
Alright, sound good! |
Tested versions
Reproducible in:
System information
Godot v4.2.1.stable.mono - Windows 10.0.19045 - GLES3 (Compatibility) - NVIDIA GeForce RTX 2080 Ti (NVIDIA; 31.0.15.4617) - AMD Ryzen Threadripper 2970WX 24-Core Processor (48 Threads)
Issue description
When trying to create a script inheriting from
VisualShaderNodeCustom
the engine / visual shader doesn't recognize the custom shader node created in C#. Custom GDScript shader nodes works.I saw that there was a closed issue with a similar error, but it seems like the solution was for GDScript only.
#67268
#67407
#69738
The C# file used in the repro project will use this as the "template", since the built-in one is broken:
#94693
Steps to reproduce
VisualShaderNodeCustom
and compileMinimal reproduction project (MRP)
ZIP:
VisualShaderNodeTest.zip
Link:
https://github.com/jonatanrojderd/VisualShaderNodeTest
The text was updated successfully, but these errors were encountered: