Deadcows / MyBox

MyBox is a set of attributes, tools and extensions for Unity
http://deadcow.ru
MIT License
1.94k stars 244 forks source link

CollapsableEventDrawer creates issues when another editor uses FoldoutHeaders #201

Open burakomer opened 2 years ago

burakomer commented 2 years ago

We have been facing this issue with a package named AnimationSequencer which has a Custom Editor for its Inspector. It places UnityEvents inside FoldoutHeaders. We have been getting the error "You can't nest FoldoutHeaders, end it with EndHeaderFoldoutGroup."

CollapsableEventDrawer needs a guard clause that checks existing foldout headers.