ApproximateSceneNodeBounds(SceneNode)
Computes a rough approximation of the node hierarchy bounds.
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Method
- Namespace: Unity.VectorGraphics
- Assembly: UnityEngine.VectorGraphicsModule
public static Rect ApproximateSceneNodeBounds(SceneNode root)
Parameters
The root node of the hierarchy to computes the bounds from
Returns
Type | Description |
|---|---|
| Rect | An approximation of the root hierarchy axis-aligned bounding-box |
Remarks
This will use the control point positions as a rough estimate of the bounds for the paths and shapes.