Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/GameFramework > API/Runtime/Engine/GameFramework/AActor
- AActor::GetActorBounds()
- AMapBuildDataActor::GetActorBounds()
- ANavigationDataChunkActor::GetActorBounds()
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 |
UFUNCTION (BlueprintCallable, Category="Collision", Meta=(DisplayName="Get Actor Bounds"))
virtual 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
| Name | 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 |