MaterialEditor.GetFlexibleRectBetweenFieldAndRightEdge

Declaration

public static Rect GetFlexibleRectBetweenFieldAndRightEdge(Rect r);

Parameters

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


Did you find this page useful? Please give it a rating: