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

Editor Places C# signal connections outside class definition #73232

Closed
silenuz opened this issue Feb 13, 2023 · 1 comment
Closed

Editor Places C# signal connections outside class definition #73232

silenuz opened this issue Feb 13, 2023 · 1 comment
Labels

Comments

@silenuz
Copy link

silenuz commented Feb 13, 2023

Godot version

v4.0.rc1.mono.official [8843d9a]

System information

Windows 10

Issue description

When using the editor to connect signals in C# the signal method is placed outside the class definition.

I have the following scene layout:

Scenelayout

Here's the initial generated class:

inititialScript

Here's what it looks like after selecting the button and connecting the pressed signal:

afterconnectingSignal

Steps to reproduce

  1. Create a project
  2. Add a node, in my case a panel
  3. Add button to panel
  4. Choose signals for the button
  5. Select pressed or any other signal
  6. Click connect
  7. Keep defaults in dialog, and click connect
  8. View the C# class file the signal is outside the class

Minimal reproduction project

testone.zip

@akien-mga
Copy link
Member

Duplicate of #18721

@akien-mga akien-mga marked this as a duplicate of #18721 Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants