Version: 2017.2

MaterialEditor.GetRectAfterLabelWidth

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

Parameters

r Line 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.