stride3d / stride3d/stride

Allowing the assignment or unassignment of nullable fields in the inspector

Open
#1,892 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C#
Stars
7.8k
Forks
1.2k
Avg merge
2d 17h
Merged PRs (30d)
49

Description

Is your feature request related to a problem? Please describe.
When inspecting an entity with a component containing a nullable field, there is no way to change the value from null to not null or vice versa.

Describe the solution you'd like
Similar to the implementation for interface fields, either a dropdown with the available options assignable or a +/X button next to the value in the inspector that we can click to clear or populate the field.

image

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

Start by locating the inspector implementation for interface fields and reproduce the issue with an entity component containing a nullable field. Compare the existing interface-field behavior with nullable values and define the expected interaction for changing null to a value and clearing it again. Done means both directions are available in the inspector.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
game-dev, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.