This document provides an overview of the Blueprint-exposed functions in UVoxyBPFLibrary. These functions are designed to be used within Unreal Engine Blueprints to interact with Voxy assets and components.
Returns: int
- Gets the current voxel size from plugin settings.

Parameters:
UObject* OwnerFVector PositionFIntVector Size
Returns: AVoxyAssetActor*
Creates a runtime Voxy asset actor at the specified position and size.
Parameters:
UObject* OwnerFIntVector Size
Returns: UVoxyAsset*
Creates a runtime Voxy asset with the given size.
Parameters:
UObject* Owner
Returns: TArray<UVoxyMeshComponent*>
Returns all Voxy mesh components in the same world as the owner.
Parameters:
UVoxyMeshComponent* Component
Updates the mesh data and synchronizes with the render thread.
Parameters:
UVoxyMeshComponent* Component
Clears all voxels in the component's asset.
Parameters:
UVoxyMeshComponent* Component
Updates collision asynchronously using GPU readback.
Parameters:
UVoxyMeshComponent* Component
Updates collision synchronously on the CPU.
Parameters:
TArray<UVoxyMeshComponent*> Components
Batch updates collision for multiple components asynchronously.
Parameters:
UVoxyMeshComponent* ComponentFVector Positionint BrushSizeEVoxyShapeType::Type Shapeuint8 ColorIndexbool IsLocal
Adds a voxel at the specified position in World or Local space.
Parameters:
const UVoxyMeshComponent* Component
Returns: TArray<FVoxyVoxel>
Returns a list of all voxels in the component.
Parameters:
const UVoxyMeshComponent* Componentuint8 ColorIndex
Returns: TArray<FVoxyVoxel>
Returns voxels with the specified color index.
Parameters:
UVoxyMeshComponent* ComponentFVector Positionbool IsLocal
Returns: uint8
Gets the Voxel color index at a position in world or local space.
Parameters:
UVoxyMeshComponent* ComponentFVector Positionbool IsLocal
Returns: uint8
Gets the Voxel color at a position in world or local space.
Parameters:
UVoxyMeshComponent* ComponentTArray<FVector> Positionsuint8 ColorIndexbool IsLocal
Adds multiple voxels at the given position in world or local space.
Parameters:
UVoxyMeshComponent* Component
Resets and updates the mesh from asset data.
Parameters:
UVoxyMeshComponent* ComponentFVector Positionint BrushSizeEVoxyShapeType::Type Shapebool IsLocal
Removes a voxel at the given position in world or local space.
Parameters:
UVoxyMeshComponent* ComponentFVector Positionint BrushSizeEVoxyShapeType::Type ShapeTArray<uint8> ColorListbool IsLocal
Removes voxels at the given position in world or local space except those with specified colors.
Parameters:
UVoxyMeshComponent* ComponentFVector Positionint BrushSizeEVoxyShapeType::Type Shapebool IsLocal
Destroys voxels at the given position in world or local space.
Parameters:
UVoxyMeshComponent* ComponentFVector RayOriginFVector RayDirection
Returns: FVoxyHitResult
Performs a raycast against the component's voxels.
Parameters:
UVoxyMeshComponent* Component
Parameters:
UVoxyMeshComponent* ComponentFVector MinBoundFVector MaxBound
Plays the raising up animation in the specified bounds.
Parameters:
UVoxyMeshComponent* Component
Plays the sand fall animation.
Parameters:
UVoxyMeshComponent* Component
Plays sand fall after voxel destruction.
Parameters:
UVoxyMeshComponent* ComponentUTexture* HeightMapTArray<uint8> ColorListfloat Offsetfloat Scale
Applies a height map to the mesh.
Parameters:
UVoxyMeshComponent* Componentfloat Erosionfloat Smoothness
Applies smoothing to the mesh.
Parameters:
UVoxyMeshComponent* ComponentFVector ScaleFVector Offsetfloat ThresholdFIntVector MinBoundFIntVector MaxBoundint Seedint OctaveTArray<uint8> ColorListbool Additive
Applies Perlin noise to the mesh.
For more details, see the source file:
Source/Voxy/Private/VoxyBPFLibrary.cpp.