语言English
  • C#

SerializedPropertyChangeEvent.GetPooled

声明

public static UIElements.SerializedPropertyChangeEvent GetPooled(SerializedProperty value);

参数

value 发生更改的 SerializedProperty。

返回值

SerializedPropertyChangeEvent 已初始化的事件。

描述

从事件池获取一个事件,并使用提供的值对其进行初始化。使用此函数代替创建新的事件。使用此方法获取的事件需要释放回池中。您可以使用 Dispose() 来释放它们。


Did you find this page useful? Please give it a rating: