using System; using UnityEngine; using UnityEditor; namespace Framework.Input.Profiles { /// /// Assists the user in editing ground definitions for the navigation system /// [CustomEditor(typeof(InputSelector), true)] public class InputSelectorEditor : Editor { /// Called when Unity wants to layout or draw the inspector public override void OnInspectorGUI() { base.OnInspectorGUI(); InputSelector inputSelector = (InputSelector)target; using(new EditorGUILayout.HorizontalScope()) { EditorGUILayout.PrefixLabel("Active Profile"); EditorGUILayout.LabelField(inputSelector.ActiveSource.ToString()); } } } } // namespace Framework.Input.Profiles