Documentation

Unity Engine


User Manual

Script Reference

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 4 days ago

Definition

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

Parameters

Line Rect.

Returns

Type

Description

RectA sub rect of the input Rect.