public override void OnInspectorGUI() { _apply = (this.target) as AVProQuickTimeTextureApply; DrawDefaultInspector(); if (_component != _apply._component) Refresh(); int newIndex = EditorGUILayout.Popup(_optionIndex, _options); if (newIndex != _optionIndex) { _optionIndex = newIndex; if (_optionIndex < _options.Length) _apply._fieldName = _options[_optionIndex]; } }
public override void OnInspectorGUI() { _apply = (this.target) as AVProQuickTimeTextureApply; DrawDefaultInspector(); if (_component != _apply._component) { Refresh(); } int newIndex = EditorGUILayout.Popup(_optionIndex, _options); if (newIndex != _optionIndex) { _optionIndex = newIndex; if (_optionIndex < _options.Length) { _apply._fieldName = _options[_optionIndex]; } } }