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

[Godot 4.1 RC1] [.NET/C#] Inspector does not show updated members of classes or type changes; Only appear after "Reload Current Project" #78765

Closed
TruelyMostWanted opened this issue Jun 27, 2023 · 2 comments · Fixed by #78787

Comments

@TruelyMostWanted
Copy link

TruelyMostWanted commented Jun 27, 2023

Godot version

Godot 4.1 Release Candidate 1

System information

Godot v4.1.rc1.mono - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3080 (NVIDIA; 31.0.15.1694) - AMD Ryzen 7 3800X 8-Core Processor (16 Threads)

Issue description

Godot 4.1 RC1 does not update the [Export]ed members or the name of a type/class in inspector when

  • ... creating a new class.cs file that inherits from node/resource
  • ... renaming a class from A.cs to B.cs
  • ... removing and adding the class to a Node/Resource
  • ... adding enum values to an existing enum (doesnt matter if its [Flags])
  • ... adding/removing [Export] on any member variable
  • ... (and probably more use cases)
    image

It only works when Project > "Reload Current Project"
image

Steps to reproduce

Create a new .cs file that inherits from a Node or Resource
Assign it a Node/Resource
Add any sort of variables to the .cs file
Add the [Export] attribute to these variables/members
Build the Code using Alt+B
Watch what happens in the inspector: Nothing!
If nothing happens: Project > Reload Current Project

Test Project attached below

Minimal reproduction project

inspector-update-fails.zip

@enxas
Copy link
Contributor

enxas commented Jun 27, 2023

Can confirm [Export] attribute is borked. Add this code to c# file [Export] float test;, click "Build" in the editor, exported property doesn't show up in the Inspector. v4.1.beta3.mono.official [ada712e] doesn't have this problem.

@raulsntos
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants