public void RemoveEvent(int index) { SerializedProperty property = this.Get("events"); if ((property != null) && property.isArray) { property.DeleteArrayElementAtIndex(index); } }