VoxelDataBlockEnterInfo
Information sent by a terrain when one of its data blocks enters the area of a VoxelViewer.
Information sent by a terrain when one of its data blocks enters the area of a VoxelViewer.
Information sent by a terrain when one of its data blocks enters the area of a VoxelViewer. See VoxelTerrain._OnDataBlockEntered.
Instances of this class must not be stored, as they will become invalid after the call they come from.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
VoxelDataBlockEnterInfoConstructor
public VoxelDataBlockEnterInfo();Methods5
AreVoxelsEditedbool
public bool AreVoxelsEdited();Tells if voxels in the block have ever been edited. If not, it means the same data can be obtained by running the generator.
boolGetLodIndexint
public int GetLodIndex();Gets which LOD index the data block is in.
intGetNetworkPeerIdint
public int GetNetworkPeerId();Gets the network peer ID of the VoxelViewer who caused the block to be referenced.
intGetPositionVector3I
public Vector3I GetPosition();Gets the position of the data block, in data block coordinates (voxel coordinates are obtained by multiplying these coordinates with data block size).
Vector3IGetVoxelsVoxelBuffer
public VoxelBuffer GetVoxels();Gets access to the voxels in the block.
VoxelBuffer