Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.
This repository was archived by the owner on May 9, 2025. It is now read-only.

Some Unity struct types do now allow edit-time modification #66

@jeffcampbellmakesgames

Description

@jeffcampbellmakesgames

Summary

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 #57 and #65 so I would wait until those are merged prior to making another PR.

Before

Vector4Variable
image

QuaternionCollection
image

Example script with various references
image

After

Vector4Variable
image

QuaternionCollection
image

Example script with various references
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions