AActor::GetActorBounds

Returns the bounding box of all components that make up this Actor (excluding ChildActorComponents).

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h

Include

#include "GameFramework/Actor.h"

Source

/Engine/Source/Runtime/Engine/Private/Actor.cpp

Syntax

void GetActorBounds
(
    bool bOnlyCollidingComponents,
    FVector & Origin,
    FVector & BoxExtent,
    bool bIncludeFromChildActors
) const

Remarks

Returns the bounding box of all components that make up this Actor (excluding ChildActorComponents).

Parameters

Parameter

Description

bOnlyCollidingComponents

If true, will only return the bounding box for components with collision enabled.

Origin

Set to the center of the actor in world space

BoxExtent

Set to half the actor's size in 3d space

bIncludeFromChildActors

If true then recurse in to ChildActor components

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss