ComputeElementBounds(ref Rect, List<GraphElement>, MinSizePolicy)
Calculates the bounds of a list of graph elements.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Experimental.GraphView
- Assembly: UnityEditor
ComputeElementBounds(Rect, List<GraphElement>, MinSizePolicy)
public static bool ComputeElementBounds(ref Rect pos, List<GraphElement> elements, Placemat.MinSizePolicy ensureMinSize = MinSizePolicy.EnsureMinSize)
Parameters
The position, if computed.
The list of elements.
Whether to consider the minimum size of the placemat while computing the bounds.
Returns
Type | Description |
|---|---|
| bool | Returns true if bounds were computed, or false otherwise. |