Documentation

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.
Read time 1 minuteLast updated 2 months ago

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.