以前使用 prop.DeleteArrayElementAtIndex(j);
但是现在unity 不允许这么操作,会报错
It is not allowed to modify the data property
因为unity自己提供了一个更方便的接口
GameObjectUtility.RemoveMonoBehavioursWithMissingScript
博客提到以前在Unity中使用prop.DeleteArrayElementAtIndex(j)删除数组元素,如今Unity不允许此操作,会报错,因其提供了更方便的接口。
以前使用 prop.DeleteArrayElementAtIndex(j);
但是现在unity 不允许这么操作,会报错
It is not allowed to modify the data property
因为unity自己提供了一个更方便的接口
GameObjectUtility.RemoveMonoBehavioursWithMissingScript
2300
1万+

被折叠的 条评论
为什么被折叠?