GetFlexibleRectBetweenFieldAndRightEdge(Rect)
Utility method for GUI layouting ShaderGUI. Used e.g for the rect after a left aligned Color field.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public static Rect GetFlexibleRectBetweenFieldAndRightEdge(Rect r)
Parameters
Field Rect.
Returns
Type | Description |
|---|---|
| Rect | A sub rect of the input Rect. |