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; }
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); }