Skip to content
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

Signals don't work in C# #68155

Closed
isfardx opened this issue Nov 2, 2022 · 6 comments
Closed

Signals don't work in C# #68155

isfardx opened this issue Nov 2, 2022 · 6 comments

Comments

@isfardx
Copy link

isfardx commented Nov 2, 2022

Godot version

4.0 beta3

System information

Windows11 RTX3060Laptop 516.94 Vulkan

Issue description

While I try to connect signals to my C# scripts, The code just generate outside the whole class part. When I move it into the certain position and run the project, Godot will warn me that cannot find that method with signal.

Steps to reproduce

Create an empty project in C#, and create a node with a c# script, then connect a signal to the script. And run the game.

then move the method with signal to right position, write something to trigger the signal and run the game to trigger the signal

Minimal reproduction project

No response

@akien-mga
Copy link
Member

Duplicate of #18721.

then move the method with signal to right position, write something to trigger the signal and run the game to trigger the signal

Please share that code, otherwise we can't know if it's a user error or if the signature is wrong.

@isfardx
Copy link
Author

isfardx commented Nov 3, 2022

@raulsntos
Copy link
Member

From the MRP it seems this is more of a duplicate of #67009

@Calinou
Copy link
Member

Calinou commented Mar 21, 2023

@isfardx Can you (or anyone else) still reproduce this bug in Godot 4.0.1 or any later release?

@RedworkDE
Copy link
Member

As far as I can tell there is no engine issue with the MRP:

  1. The Vector components got renamed since
  2. The callback has a non-marshallable argument of type object. Changing that to Variant fixes the project
  3. This leaves the error message as kinda confusing but that is tracked in Calling signal callback with wrong parameter types raises confusing "Method not found" error. #35910

@Calinou
Copy link
Member

Calinou commented Mar 21, 2023

Closing in favor of #35910.

@Calinou Calinou closed this as not planned Won't fix, can't repro, duplicate, stale Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants