Exemplo n.º 1
0
 public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
 {
     if (_drawer == null)
     {
         _drawer = new DeAudioClipDataPropertyDrawer();
     }
     DeAudioClipDataPropertyDrawer.drawMode = (DeAudioClipDataModeAttribute)attribute;
     _drawer.OnGUI(position, property, label);
     DeAudioClipDataPropertyDrawer.drawMode = null;
 }
Exemplo n.º 2
0
        public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
        {
            if (_drawer == null)
            {
                _drawer = new DeAudioClipDataPropertyDrawer();
            }
            DeAudioClipDataPropertyDrawer.drawMode = (DeAudioClipDataModeAttribute)attribute;
            float result = _drawer.GetPropertyHeight(property, label);

            DeAudioClipDataPropertyDrawer.drawMode = null;
            return(result);
        }