1.9.0: Added support for attributes for drawing handles in the scene
This commit is contained in:
parent
81906d49dd
commit
5ce34bde70
48 changed files with 1354 additions and 8 deletions
|
|
@ -16,7 +16,16 @@ namespace Module.Inspector.Editor
|
|||
|
||||
bool prevEnabled = GUI.enabled;
|
||||
GUI.enabled = prevEnabled && accessType == EAccessType.Enabled;
|
||||
|
||||
|
||||
if (Event.current.type == EventType.Repaint)
|
||||
{
|
||||
for (var i = 0; i < result.handleDrawers.Count; i++)
|
||||
{
|
||||
EditorPropertyUtility.ResultValue<HandleDrawerPropertyAttribute, HandlePropertyDrawer> value = result.handleDrawers[i];
|
||||
HandleDrawerEditor.Add(value.attribute, property, value.drawer);
|
||||
}
|
||||
}
|
||||
|
||||
label.tooltip = result.tooltip;
|
||||
|
||||
for (var i = 0; i < result.predrawerModifiers.Count; i++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue