RealDocs

UKismetSystemLibrary::GetActorBounds

function Engine Blueprint Deprecated Since 4.0
Deprecated: Use AActor::GetActorBounds instead.
#include "Kismet/KismetSystemLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintPure

Description

Computes the world-space bounding box that encloses all of an actor's components combined.

Caveats & Gotchas

  • Marked DeprecatedFunction in the UFUNCTION meta — prefer AActor::GetActorBounds (the native C++/Blueprint node exposed directly on Actor) in new code.
  • Unlike GetComponentBounds, this does not return a bounding sphere radius.
  • Bounds are computed from all components on the actor, including ones with no collision, so the box can be larger than the actor's collision volume.

Signature

static void GetActorBounds(const AActor* Actor, FVector& Origin, FVector& BoxExtent)

Parameters

Name Type Description Default
Actor const AActor* The actor to compute combined bounds for.
Origin FVector& Output: world-space center of the actor's combined bounding box.
BoxExtent FVector& Output: half-size of the combined bounding box along each axis.

Return Type

void

Example

Get an actor's combined world bounds C++
FVector Origin, BoxExtent;
UKismetSystemLibrary::GetActorBounds(MyActor, Origin, BoxExtent);

Version History

Introduced in: 4.0

Version Status Notes
5.6 deprecated Marked DeprecatedFunction; prefer AActor::GetActorBounds.

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.