handzlikchris / handzlikchris/FastScriptReload
Bug : Added new field cast issue (float initialized with int value)
- Dominant language
- C#
- Stars
- 2.2k
- Forks
- 167
- PR merge metrics
- No merged PRs in 30d
Description
When adding a new float field with an integer initial value (no 'f' suffix), there is a cast exception in the NewFieldsRendererDefaultEditorPatch.RenderNewlyAddedFields method (newFieldType is System.Single but addedFieldValues[addedFieldValueKey] is System.Int32).
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in NewFieldsRendererDefaultEditorPatch.RenderNewlyAddedFields and inspect how newFieldType is applied to addedFieldValues. Reproduce the issue by adding a float field with an integer initial value; done means the field is added without a cast exception and retains the expected value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, unity
- Domain
- devtools, game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100