针对高版本UNITY使用DeleteArrayElementAtIndex方法删除Missing Script出现报错:It is not allowed to modify the data property的解决方案:
unity在新的版本中 引入了GameObjectUtility.RemoveMonoBehavioursWithMissingScript方法来移除预置体中的Missing Script。网络上使用DeleteArrayElementAtIndex方法批量删除Missing Script会出现It is not allowed to modify the data property这样禁止修改Property的报错,于是对其进行改良使用新的GameObjectUtility.RemoveMonoBehavioursWithMissingScript方法,话不多说,直接上代码
使用DeleteArrayElementAtIndex方法删除Missing Script报错:It is not allowed to modify the data property的替代方案
针对高版本UNITY使用DeleteArrayElementAtIndex方法删除Missing Script出现报错:It is not allowed to modify the data property的解决方案:unity在新的版本中引入了GameObjectUtility.RemoveMonoBehavioursWithMissingScript方法来移除预置体中的MissingScript。网络上使用DeleteArrayElementAtIndex方法批量删除Missing Scri