Navigation
API > API/Runtime > API/Runtime/Engine
Component used to copy the bounds of another Actor.
| Name | UBoundsCopyComponent |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/BoundsCopyComponent.h |
| Include Path | #include "Components/BoundsCopyComponent.h" |
Syntax
UCLASS (ClassGroup=Rendering, HideCategories=(Activation, AssetUserData, Collision, Cooking, Tags),
MinimalAPI)
class UBoundsCopyComponent : public UActorComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → UBoundsCopyComponent
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UBoundsCopyComponent
(
const FObjectInitializer& ObjectInitializer |
Components/BoundsCopyComponent.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bCopyXBounds | bool | Components/BoundsCopyComponent.h | ||
| bCopyYBounds | bool | Components/BoundsCopyComponent.h | ||
| bCopyZBounds | bool | Components/BoundsCopyComponent.h | ||
| bKeepOwnBoundsScale | bool | If true, the actor's scale will be changed so that after adjustment, its own bounds match the source bounds. | Components/BoundsCopyComponent.h |
|
| BoundsSourceActor | TSoftObjectPtr< AActor > | Actor to copy the bounds from to set up the transform. | Components/BoundsCopyComponent.h |
|
| bUseCollidingComponentsForOwnBounds | bool | If true, the actor's own bounds will include its colliding components bounds. | Components/BoundsCopyComponent.h |
|
| bUseCollidingComponentsForSourceBounds | bool | If true, the source actor's bounds will include its colliding components bounds. | Components/BoundsCopyComponent.h |
|
| PostTransform | FTransform | Transform to apply to final result. | Components/BoundsCopyComponent.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetRotation() |
Copy the rotation from BoundsSourceActor to this component | Components/BoundsCopyComponent.h |
|
void SetTransformToBounds() |
Set this component transform to include the BoundsSourceActor bounds | Components/BoundsCopyComponent.h |
|
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool IsEditorOnly() |
Returns whether this component is an editor-only object or not | Components/BoundsCopyComponent.h |