UKismetStringLibrary::Conv_BoxToString
#include "Kismet/KismetStringLibrary.h"
Access: public
Specifiers: staticBlueprintPureBlueprintAutocast
Description
Converts an FBox to a string using FBox's default ToString formatting, printing its Min and Max corner vectors. Backs the 'To String (Box)' Blueprint conversion node.
Caveats & Gotchas
- • Prints the box's raw Min/Max corners, not its center and extents — use Conv_BoxCenterAndExtentsToString if you want the center/extent representation instead of corner coordinates.
- • An uninitialized or degenerate FBox (IsValid() false) still converts to a string without warning, so a suspicious-looking Min/Max pair in a log doesn't necessarily indicate a bug unless you also check IsValid().
Signature
static FString Conv_BoxToString(const FBox& Box) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Box | const FBox& | The bounding box value to convert. | — |
Return Type
FString Example
Log a component's bounding box C++
FBox Bounds = MeshComponent->Bounds.GetBox();
UE_LOG(LogTemp, Log, TEXT("Bounds: %s"), *UKismetStringLibrary::Conv_BoxToString(Bounds)); See Also
Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?