Editor crashes on nullable value type fields
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: GitHub source current branch
Version: Latest commit at time of report
Platform(s): Windows
Describe the bug
The editor crashes when handling nullable value types, e.g. float?
To Reproduce
Steps to reproduce the behavior:
- Define a component with a nullable value type field (e.g. float?)
- Add the component to an entity
- Attempt to edit the field in the editor
- Editor crashes
Expected behavior
Nullable value type fields should be editable like regular fields, where an empty string represents null
Screenshots
Not applicable
Log and callstacks
Not applicable
Additional context
It appears that the editor doesn't currently support nullable value types
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 crash in the editor with a component field declared as float? and trace the editor's field-editing entry point for nullable value types. Verify that the field can be edited without a crash, that an empty value represents null, and that regular nullable values remain editable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- game-dev, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100