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:
parent
05f04657c5
commit
ee7326c33a
8 changed files with 198 additions and 31 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue