MaterialEditor.GetRectAfterLabelWidth

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.