Adding a voxel component is similar to adding a Scene component.
You can set the position and rotation freely and attach it to a specific socket.
2. Setup Block Meshes
Voxel components can construct voxels by combining multiple meshes.
Block Meshes is a Static Mesh array that is used when the construct method is StaticMesh, InstancedStaticMesh.
Destructible Block Meshes is a Destructible Mesh array that is used when the construct method is DestructibleMesh.
3. Setup Block Mesh Scale
Block Scale allows you to adjust the size of the voxel block.
4. Setup Construct Method
Static Mesh - Constructs each voxel block with StaticMeshComponent. This method is suitable for specific processing with each block.
Instanced Static Mesh - Creates InstancedStaticMeshComponent only as many types of Block Mesh as used.
Destructible Mesh - Constructs each voxel block with a DestructibleComponent.
5. Setup Culling Inside Block
If Culling Inside Block is true, do not construct obscured blocks.
It is recommended to set it to False if the block mesh is transparent or not cube shaped.
6. Setup Collision Profile Name
You can set the collision preset for the voxel block.
7. Adjust View Mode
The voxel tool shows a section of a specific plane. (X | Y), (X | Z), (Y | Z)
The red, green, blue, and white color blocks at each corner of the Preview match the colors of the 3D Guide Anchor.
Swap Axis, Flip X, Y, Z can be used to display Preview in the same direction as the viewport screen.
View Pos displays the position of the plane being edited.
8. Block Mesh Index
The Block Mesh Index represents the mesh in the Block and Destructible Block Meshes arrays.
In the Preview, the voxel block consisting of the corresponding Block Mesh Index is indicated by Green, and the blocks with different meshes are marked by Red.
Block Mesh Index is used for Fill Empty and Clear Blocks of Block Mesh Index.
9. Resize Voxel
Expand - Expands the area of the voxel.
Trim - Trims the area of the voxel.
10. Modify - Thicken
Duplicate the current editing plane thickly.
11. Modify - Collapse
Removes the plane that is currently being edited.
12. Modify - Fill Empty
The blank space of the current editing plane is filled with blocks of the Block Mesh Index.
13. Modify - Clear All
Empty the current editing plane.
14. Modify - Clear Blocks of Block Mesh Index
Empty the block corresponding to the Block Mesh Index in the plane currently being edited.
15. Mirror
Inverts voxel blocks to a specific axis.
Mirror Current Plane - When set to True, limits the mirror coverage to the current editing plane.
16. 3D Guide Gizmo
The Green box displays the entire voxel area.
The yellow box displays the plane currently being edited.
The red, green, blue, and white points at each corner of the yellow box are used to match the preview screen.
The yellow arrow is used to move the position of the current editing plane.
The Red, Green, and Blue arrows indicate the X, Y, and Z axes, respectively, and are used to switch the editing plane to that axis.
Black points represent empty blocks.
Green points represent blocks corresponding to the Block Mesh Index.
Red points represent blocks that do not correspond to the Block Mesh Index.
17. 3D Guide Setup
Guide Point Size - Adjusts the point size of the block on the viewport.
Guide Line Thickness - Adjusts the thickness of the Green and Yellow box lines on the viewport.
Guide Arrow Scale - Adjusts the size of the arrow.
Guide Anchor Size - Adjusts the size of the anchor point on the viewport.
18. Voxel Offset
Adjusts the position where the voxel block is constructed.
A value of 1 indicates one voxel block size.
19. OnVoxelComponentHit
The OnComponentHit event of the constructed voxel block can be received as an OnVoxelComponentHit event.
20. Component Tags For Block Mesh
You can assign a component tag to voxel blocks generated by a specific block mesh.
21. Rotation For Block Mesh
You can specify rotation for voxel blocks created with a specific block mesh.