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

Empty classes break the editor instantiation dropdown #2341

Open
IXLLEGACYIXL opened this issue Jun 20, 2024 · 2 comments
Open

Empty classes break the editor instantiation dropdown #2341

IXLLEGACYIXL opened this issue Jun 20, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@IXLLEGACYIXL
Copy link
Collaborator

Release Type: Official Release/GitHub (please choose appropriate option)
current
Version: Version number and/or git branch

Platform(s): Does the problem occur on Windows, Android...?

Describe the bug
Having an empty class on an interface which should be serialized removes all other types from suggestions

To Reproduce
Steps to reproduce the behavior:

  1. create an empty interface
  2. create 2 classes standard implementing the interface with a body so you have 2 classes with a { } body
  3. make a class having it as public property and check in editor that the types are there
  4. make one of the classe an empty class like [DataContract] public class Bob : IStuff;
  5. reload in editor => drop down only suggests none now

Expected behavior
it should work the same as an empty class with body

@IXLLEGACYIXL IXLLEGACYIXL added the bug Something isn't working label Jun 20, 2024
@IXLLEGACYIXL IXLLEGACYIXL changed the title Empty classes break the editor Empty classes break the editor instantiation dropdown Jun 20, 2024
@Jklawreszuk
Copy link
Collaborator

Then Stride is teaching you good practices 😂

@IXLLEGACYIXL
Copy link
Collaborator Author

sometimes its hard to tell if the side effect is intentional or not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants