Experimental: this API is experimental and might be changed or removed in the future.

RectUtils.Inflate

切换到手册
public static Rect Inflate (Rect a, float left, float top, float right, float bottom);

参数

a原始矩形。
left将矩形向左放大的数量。
top将矩形向顶部放大的数量。
right将矩形向右放大的数量。
bottom将矩形向底部放大的数量。

描述

创建并返回特定矩形的放大副本。该副本按照指定数量放大。

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961