stride3d / stride

Stride Game Engine (formerly Xenko)
https://stride3d.net
MIT License
6.32k stars 917 forks source link

Empty classes break the editor instantiation dropdown #2341

Open IXLLEGACYIXL opened 1 week ago

IXLLEGACYIXL commented 1 week ago

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

Jklawreszuk commented 1 week ago

Then Stride is teaching you good practices 😂

IXLLEGACYIXL commented 1 week ago

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