Skip to content

UBoxSpaceBlueprintLibrary

Blueprint oriented helper functions for creating & inspecting Box Space InstancedStructs.

This library provides utility functions for creating and manipulating Box (continuous) Space instances from within Blueprints. These return TInstancedStruct<FBoxSpace>.

class UBoxSpaceBlueprintLibrary : public UBlueprintFunctionLibrary

Methods

ArraysToBoxSpace

static TInstancedStruct<FBoxSpace>
ArraysToBoxSpace(const TArray<float> &InLow, const TArray<float> &InHigh,
const TArray<int32> &InShape)

Converts arrays to a box (continuous) space with specified bounds and shape.

Parameters

  • InLow (const TArray<float>)

  • InHigh (const TArray<float>)

  • InShape (const TArray<int32>)


VectorToBoxSpace

static TInstancedStruct<FBoxSpace> VectorToBoxSpace(const FVector &InLow,
const FVector &InHigh)

Creates a box space for FVector with specified bounds for each component.

Parameters

  • InLow (const FVector)

  • InHigh (const FVector)


RotatorSpace

static TInstancedStruct<FBoxSpace> RotatorSpace()

Creates a box space for FRotator with specified bounds for each component.


TransformToBoxSpace

static TInstancedStruct<FBoxSpace>
TransformToBoxSpace(const FVector &InLocationLow, const FVector &InLocationHigh,
const FVector &InScaleLow, const FVector &InScaleHigh)

Creates a box space for FTransform with specified bounds for Location, Rotation, and Scale.

Parameters

  • InLocationLow (const FVector)

  • InLocationHigh (const FVector)

  • InScaleLow (const FVector)

  • InScaleHigh (const FVector)

Source: Source/Schola/Public/Spaces/Blueprint/BoxSpaceBlueprintLibrary.h