Skip to content

Transform List Get Center

Calculates the center point of a Transform List.

You can use a simple average, or weight the result using transform scale, renderer bounds, or renderer alpha.

Parameters

Parameter Description
Transform List The list of Transforms to evaluate.
Weight Mode How each Transform contributes to the center. Equal gives every item the same weight. TransformScale uses world scale. RendererBounds uses renderer size. RendererAlpha uses visible alpha when available.
Axis Limits which axes are written to the result, such as XY, XZ, or XYZ.
Center Stores the calculated center position.

Notes

  • If the list is empty, the stored center is Vector3.zero.
  • Null entries in the list are ignored.
  • If the selected weight mode cannot produce useful weights, the action falls back to a regular average.
  • Axis filtering is applied when writing the result, so you can preserve unused axes from the existing variable value.

Example

Use this action to find the center of a squad, asteroid cluster, or enemy formation.

For example, you can calculate a group center and then have a camera, marker, or area attack target that position.