手册
脚本 API
unity3d.com
Version:
2018.1
2021.1
2020.3
2020.2
2020.1
2019.4
2019.3
2019.2
2019.1
2018.4
2018.3
2018.2
2018.1
2017.4
2017.3
2017.2
2017.1
5.6
手册
脚本 API
语言:
中文
English
中文
日本語
Español
한국어
Русский
脚本 API
Version:
2018.1
2021.1
2020.3
2020.2
2020.1
2019.4
2019.3
2019.2
2019.1
2018.4
2018.3
2018.2
2018.1
2017.4
2017.3
2017.2
2017.1
5.6
Experimental
: this API is experimental and might be changed or removed in the future.
PostLayoutEvent
.GetPooled
切换到手册
public static
Experimental.UIElements.PostLayoutEvent
GetPooled
(bool
hasNewLayout
,
Rect
oldRect
,
Rect
newRect
);
参数
hasNewLayout
目标布局是否已更改。
oldRect
元素的旧尺寸。
newRect
元素的新尺寸。
返回
PostLayoutEvent
事件。
描述
从事件池获取一个事件并用指定的值初始化该事件。请使用此方法而不是创建新事件。应使用 ReleaseEvent() 将用此方法获取的事件释放回池中。