private void OnEnable() { inputCollector = target as BaseInputCollector; list = new ReorderableList( serializedObject, serializedObject.FindProperty("inputSources"), true, true, true, true); list.drawHeaderCallback = DrawHeader; list.drawElementCallback = DrawListElement; list.onAddCallback = AddElement; list.onRemoveCallback = RemoveElement; _inputSourcesTypes = InputCollectorManager.GetDerivedTypes <BaseInputSource>(); _inputSourcesMenu = GenerateMenuFormTypes(_inputSourcesTypes, AddNewSource); }