private void OnAddEffectInfoMsg(ReorderableList list) { var index = effectInfoMsgAssetsProp.arraySize; effectInfoMsgAssetsProp.arraySize++; effectInfoMsgList.index = index; var prop = effectInfoMsgAssetsProp.GetArrayElementAtIndex(index); prop.FindPropertyRelative("id").intValue = EffectMgr.GetID(); this.serializedObject.ApplyModifiedProperties(); }