Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UCapsuleComponent
Description
Returns the capsule radius and half-height scaled by the component scale. Half-height includes the hemisphere end cap.
| Name | GetScaledCapsuleSize |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/CapsuleComponent.h |
| Include Path | #include "Components/CapsuleComponent.h" |
UFUNCTION (BlueprintCallable, Category="Components|Capsule")
void GetScaledCapsuleSize
(
float & OutRadius,
float & OutHalfHeight
) const
The capsule radius and half-height scaled by the component scale.
Parameters
| Name | Remarks |
|---|---|
| OutRadius | Radius of the capsule, scaled by the component scale. |
| OutHalfHeight | Half-height of the capsule, scaled by the component scale. Includes the hemisphere end cap. |