Is there a reason this signaling approach is undocumented? (godot 4 c# signals) #6867
MS-Painter
started this conversation in
Scripting
Replies: 1 comment
-
And yes. I'm aware this is just using C# Events, but Godot Signals generate pretty much the same objects while having less support. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So I'm new to Godot and I was trying to wrap my head around clean approaches to signaling, especially between scenes.
I ended up with something that works well, but seems like Godot isn't yet really addressing or smoothly integrating? -
I create a new Resource like so:
Take note that I'm not using the
[Signal]
attribute, this is because I want to exposeMoveToScreen
which the attribute doesn't seem to allow.Now all a
Node
has to do is get a reference to this resource:I invoke it like a regular c# event:
And subscribe to it like a regular c# event:
Why is this valid approach not documented or used anywhere? Am I Missing something?
Beta Was this translation helpful? Give feedback.
All reactions