TransformExtensions.CenterPositionOfChildren

Extension Method in TransformExtensions

Declaration

public static Vector3 CenterPositionOfChildren(this Transform transform)

Description

Calculates the center position of the transform's children.

Parameters

transformThe transform to calculate the center position of.

Returns

Vector3The center position of the transform's children.