9 [CustomEditor(typeof(ControllerFinder))]
12 private SerializedProperty handednessProperty;
13 private SerializedProperty elementProperty;
17 handednessProperty = serializedObject.FindProperty(
"handedness");
18 elementProperty = serializedObject.FindProperty(
"element");
23 serializedObject.Update();
25 EditorGUILayout.Space();
26 EditorGUILayout.LabelField(
"Controller Options",
new GUIStyle(
"Label") { fontStyle = FontStyle.Bold });
27 EditorGUILayout.Space();
28 EditorGUI.indentLevel++;
30 EditorGUILayout.PropertyField(handednessProperty);
31 EditorGUILayout.PropertyField(elementProperty);
33 EditorGUI.indentLevel--;
34 serializedObject.ApplyModifiedProperties();