Empty classes break the editor instantiation dropdown
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 7.8k
- Forks
- 1.2k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 49
Description
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:
- create an empty interface
- create 2 classes standard implementing the interface with a body so you have 2 classes with a { } body
- make a class having it as public property and check in editor that the types are there
- make one of the classe an empty class like
[DataContract] public class Bob : IStuff; - reload in editor => drop down only suggests none now
Expected behavior
it should work the same as an empty class with body
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in the Stride editor using an interface, two implementing classes, and a public property as described, then repeat after changing one implementation to an empty class. Compare the dropdown results and confirm that the expected behavior is that both implementing types remain suggested.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- devtools, game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100