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

C#, Changed event in a custom Resource with [Tool] does not reset properly on Build #84394

Open
jinsediaoying opened this issue Nov 3, 2023 · 1 comment

Comments

@jinsediaoying
Copy link

jinsediaoying commented Nov 3, 2023

Godot version

4.2beta4, 4.1.2

System information

Godot v4.2.beta4.mono - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4070 (NVIDIA; 31.0.15.3667) - 13th Gen Intel(R) Core(TM) i5-13600KF (20 Threads)

Issue description

C#, Changed event in a custom Resource with [Tool] does not reset properly on Build, and it throw some errors, and cause repeated event subscribe

image

Steps to reproduce

  1. create a resource object with MyResource script attached
  2. change code a bit, then Build the project
  3. you will see errors after Build, and if you do step multiple times, when you change the X in the editor, you will notice that
    OnChanged method get invoked multiple times

Minimal reproduction project

BugReport.zip

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

2 participants