SerializedProperty.Copy 复制

function Copy () : SerializedProperty

Description描述

Duplicates the SerializedProperty.

复制SerializedProperty。

This lets you keep a reference to a specific property. Note that if an array size before to the copied property is modified this and this property is then accessed, then this might lead to memory corruption.

这让你保留一个引用到特定的属性。注意,如果复制属性之前修改这个数组大小并访问,那么,这可能会导致内存损坏。

Page last updated: 2011-7-11
SerializedProperty.Copy 复制_unity3d游戏脚本制作教程-游戏蛮牛出品

SerializedProperty.Copy 复制

function Copy () : SerializedProperty

Description描述

Duplicates the SerializedProperty.

复制SerializedProperty。

This lets you keep a reference to a specific property. Note that if an array size before to the copied property is modified this and this property is then accessed, then this might lead to memory corruption.

这让你保留一个引用到特定的属性。注意,如果复制属性之前修改这个数组大小并访问,那么,这可能会导致内存损坏。

Page last updated: 2011-7-11