SceneNodeBounds(SceneNode)
Computes a pretty accurate approximation of the scene bounds.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.VectorGraphics
- Assembly: UnityEngine.VectorGraphicsModule
public static Rect SceneNodeBounds(SceneNode root)
Parameters
The root node of the hierarchy to computes the bounds from
Returns
Type | Description |
|---|---|
| Rect | An approximation of the node hierarchy axis-aligned bounding-box |
Remarks
This will properly evaluate the bounds of the paths and shapes, but will ignore the paths stroke widths.