TransformExtensions.AveragePositionOfChildren

Extension Method in TransformExtensions

Declaration

public static Vector3 AveragePositionOfChildren(this Transform transform)

Description

Calculates the average position of the transform's children.

Parameters

transformThe transform to calculate the average position of.

Returns

Vector3The average position of the transform's children.