1.4.0: Added ReadableScriptableObjectAttribute and fixed an GUI.enable isssue

* Attribute: Added ReadableScriptableObjectAttribute to allow for inline editing of ScriptableObjects in the inspector
* Attribute: Fixed issue, where root drawer wouldn't use existing value of GUI.enabled, when setting GUI.enabled state with new access value
This commit is contained in:
Anders Ejlersen 2021-12-19 13:45:23 +01:00
parent 05f04657c5
commit ee7326c33a
8 changed files with 198 additions and 31 deletions

View file

@ -15,7 +15,7 @@ namespace Module.Inspector.Editor
return;
bool prevEnabled = GUI.enabled;
GUI.enabled = accessType == EAccessType.Enabled;
GUI.enabled = prevEnabled && accessType == EAccessType.Enabled;
label.tooltip = result.tooltip;