Version: 2020.2

MaterialEditor.GetFlexibleRectBetweenFieldAndRightEdge

切换到手册
public static Rect GetFlexibleRectBetweenFieldAndRightEdge (Rect r);

参数

r 字段矩形。

返回

Rect 输入矩形的子矩形。

描述

用于 GUI 布局 ShaderGUI 的 Utility 方法。例如,用于左对齐 Color 字段之后的矩形。