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