Fix Unity structs drawn in property drawer by jeffcampbellmakesgames · Pull Request #68 · DanielEverland/ScriptableObject-Architecture
added 4 commits
April 21, 2019 15:15* Modified GenericPropertyDrawer to include edge case checks for both layout and non layout modes when the type of value being displayed is a Vector2/3/4 and Quaternion so that they can be displayed in the proper format for Variables, Collections, and References. * Modified the CollectionEditor to include an edge case for Vector4, Quaternion to display them on a single line rather than use the reported property height which covers several lines. * Modified BaseReferenceDrawer to draw constant values using GenericPropertyDrawer methods; this has the benefit of keeping existing functionality for constants, plus covering edge cases for Vector2/3/4 and Quaternions.
* Removed redundant call to set rect height as it the height for an element in a reorderable list is set by its `elementHeightCallback`, which in this case is `GetElementHeight`. Removed padding `GetElementHeight` so that a single line item does not appear stretched.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters