private void OnEnable() { MyMeshes = (ActiveMeshes)target; ToggleMeshes = serializedObject.FindProperty("ToggleMeshes"); list = new ReorderableList(serializedObject, ToggleMeshes, true, true, true, true); list.drawElementCallback = DrawElementCallback; list.drawHeaderCallback = HeaderCallbackDelegate; list.onAddCallback = OnAddCallBack; }
private void OnEnable() { m = (ActiveMeshes)target; script = MonoScript.FromMonoBehaviour(target as MonoBehaviour); activeMeshesList = serializedObject.FindProperty("Meshes"); showMeshesList = serializedObject.FindProperty("showMeshesList"); random = serializedObject.FindProperty("random"); list = new ReorderableList(serializedObject, activeMeshesList, true, true, true, true); { list.drawElementCallback = DrawElementCallback; list.drawHeaderCallback = HeaderCallbackDelegate; list.onAddCallback = OnAddCallBack; } }