#Signal is not compatible with function depsite having same argument count + type
1 messages · Page 1 of 1 (latest)
I have a ActorHurtbox node with the signal _take_damage() that has a DamageInstance resource as an arugment. I cannot get it to connect to the ActorHealth node with the function apply_damage(damage_instance:DamageInstance)
Both the signal and function have a single argument of type DamageInstance so i'm really confused why I can't ? 😅
it only shows up with Compatible Methods Only turned off
Technically solved by deleting the nodes and readding them, but not known if theres a way to fix this without completely resetting both 🤔
connect your signals through code and this wont happen, easier to read too
So for what it's worth, I just created two nodes, one with a signal that emitted a custom type, and another with a function that accepted that custom type as an argument. Sure enough, it was marked not compatible.
If toggling compatible methods only off and picking the method works for you, I think that's what you're stuck with. I would suggest the same as Geser, but I wanted to try and provide help with what you are trying to do first.
Honestly, there seems to be a lot of problems with the graphical signal connections
its a weird bug I've noticed. You can connect them just fine though. No runtime errors
It seems to just be a problem with custom types. When I set up the exact same thing using an int instead, it calls it compatible 🤷♂️
yes i can confirm i did manage to get it working by just using a 'non compatible' function anyway! nice to know its due to being a custom type
https://github.com/godotengine/godot/issues/84058 found a issue thats currently open about it!