文档

Unity Engine

Unity Engine

ComputeElementBounds(ref Rect, List<GraphElement>, MinSizePolicy)

Calculates the bounds of a list of graph elements.
阅读时间1 分钟最后更新于 1 个月前

Definition

ComputeElementBounds(Rect, List<GraphElement>, MinSizePolicy)

public static bool ComputeElementBounds(ref Rect pos, List<GraphElement> elements, Placemat.MinSizePolicy ensureMinSize = MinSizePolicy.EnsureMinSize)

Parameters

pos

The position, if computed.

The list of elements.

ensureMinSize

Whether to consider the minimum size of the placemat while computing the bounds.

Returns

Type

Description

boolReturns true if bounds were computed, or false otherwise.