1.9.2: Added OpenPropertyEditor and fixed some issues regarding using multiple drawers with EditorGUI.PropertyField

- Property: `OpenPropertyEditor` adds a "show"-button next to a `ScriptableObject` or `Component` to open a property window
- Property: Fixed issue, where x PropertyDrawers would invoke each other x times
This commit is contained in:
Anders Ejlersen 2024-03-10 14:11:49 +01:00
parent f609ba6f51
commit c87dd743f6
8 changed files with 189 additions and 63 deletions

View file

@ -83,7 +83,7 @@ List of all available drawer attributes:
* `IntToAnimatorParameter`
* Adds popup with all animator parameter names provided by animator field and converts to hash id
* `IntToEnum`
* Adds a popup with enum type provided and converts it to an integer
* Adds a popup with enum type provided and converts it to an integer
* `IntToLayer`
* Adds a popup with a single layer selection and converts it to an integer
* `IntToLayerMask`
@ -93,6 +93,9 @@ List of all available drawer attributes:
* `Naming`
* Adds button to apply naming scheme to string value
* Types: Camel, Pascal, Snake, Snake (All caps), Kebab, Kebab (All caps)
* `OpenPropertyEditor`
* Adds a button to open a property window, if object reference is not null and either a `ScriptableObject` or `Component`
* _Note: `OpenPropertyEditor` and `ReadableScriptableObject` currently doesn't support each other_
* `Percentage`
* Convert float value to percentage and back again (1% = 0.01f)
* `PopupFromConst`