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

Add component menu show 2 times the same component #6754

Open
bub-bl opened this issue Oct 31, 2024 · 0 comments
Open

Add component menu show 2 times the same component #6754

bub-bl opened this issue Oct 31, 2024 · 0 comments

Comments

@bub-bl
Copy link

bub-bl commented Oct 31, 2024

Describe the bug

When using a partial class to split the razor and the csharp logic, the Add Component menu show 2 times the same component, but its random.. Sometimes it does the duplication, sometimes not

To Reproduce

  • Create a panel component with the following code

Hud.razor

@namespace YourNamespace;
@inherits PanelComponent

<root>
	
</root>

Hud.razor.cs

namespace YourNamespace;

public sealed partial class Hud : PanelComponent
{
	
}
  • Click on the Add Component button in thee gameobject inspector and type "Hud", you should see 2 times the "Hud" component in the list

Expected behavior

The menu should only display one component instead of two

Media/Files

Image

Additional context

No response

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

No branches or pull requests

1 participant