Some Unity struct types do now allow edit-time modification
See original GitHub issueSummary
There is currently a bug with the Inspector/Drawers for editing Reference constant, variable, or collections of Vector4 and Quaternion where only a foldout is shown with no editable fields (tested on 2019.1.0f2).
I have resolved this drawing issue by adding some hardcoded checks to GenericPropertyDrawer
(for layout and non-layout methods) to check for these types and show the appropriate controls and changing the BaseReferenceDrawer
to use this helper class, but the work is based on PRs https://github.com/DanielEverland/ScriptableObject-Architecture/pull/57 and https://github.com/DanielEverland/ScriptableObject-Architecture/pull/65 so I would wait until those are merged prior to making another PR.
Before
Vector4Variable
QuaternionCollection
Example script with various references
After
Vector4Variable
QuaternionCollection
Example script with various references
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Nice job! Looks great
I fixed the following issues