기술 자료

Unity Engine

Unity Engine

SceneNodeBounds(SceneNode)

Computes a pretty accurate approximation of the scene bounds.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public static Rect SceneNodeBounds(SceneNode root)

Parameters

The root node of the hierarchy to computes the bounds from

Returns

Type

Description

RectAn 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.