Version: 2018.1

MaterialEditor.GetFlexibleRectBetweenFieldAndRightEdge

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

Parameters

rField Rect.

Returns

Rect A sub rect of the input Rect.

Description

Utility method for GUI layouting ShaderGUI. Used e.g for the rect after a left aligned Color field.