Version: 2018.1

MaterialEditor.GetRectAfterLabelWidth

Switch to Manual
public static Rect GetRectAfterLabelWidth (Rect r);

Parameters

rLine Rect.

Returns

Rect A sub rect of the input Rect.

Description

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.