Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

Calculates the bounds of a list of graph elements.
Read time 1 minuteLast updated 10 days ago

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.