文档

Unity Engine

Unity Engine

GetRectAfterLabelWidth(Rect)

Utility method for GUI layouting ShaderGUI. This is the rect after the label which can be used for multiple properties. The input rect can be fetched by calling: EditorGUILayout.GetControlRect.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static Rect GetRectAfterLabelWidth(Rect r)

Parameters

Line Rect.

Returns

Type

Description

RectA sub rect of the input Rect.