尝试制作了一个监听任意Object属性的方片条.主要思路就是通过枚举该对象的属性,显示在inspector上.
1 | public class ProgressListener : MonoBehaviour{ |
and to make it accessible from inspector.we iterator the scriptobject’s member and give a popup list to user.
1 | public class ProgressListenerDrawer : Editor{ |
很方便.