Beispiel #1
0
 public override void OnInspectorGUI()
 {
     if (m_Instance == null)
     {
         return;
     }
     this.DrawDefaultInspector();
     ExposeProperties.Expose(m_fields);
 }
        public override void OnInspectorGUI()
        {
            if (_mInstance == null)
            {
                return;
            }
            DrawDefaultInspector();
            ExposeProperties.Expose(_mFields);

            EditorUtility.SetDirty(target); // Makes sure the inspector will update every frame
        }
Beispiel #3
0
 public virtual void OnEnable()
 {
     m_Instance = target as ExposableMonobehaviour;
     m_fields   = ExposeProperties.GetProperties(m_Instance);
 }
Beispiel #4
0
 public virtual void OnEnable()
 {
     m_Instance = target as ExposableScriptableObject;
     m_fields   = ExposeProperties.GetProperties(m_Instance);
 }