stride3d / stride3d/stride

Empty classes break the editor instantiation dropdown

Open
#2,341 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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:

  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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.