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
transform | The transform to calculate the average position of. |
Returns
Vector3 | The average position of the transform's children. |