reckfellENGINE

VoxelViewer

Attach this as a child node of characters, so the voxel world will know where to load blocks around them. If no viewer is present in the world, nothing will generate.

On this page
class VoxelViewerReckfellSharpInherits Entity3D

Attach this as a child node of characters, so the voxel world will know where to load blocks around them. If no viewer is present in the world, nothing will generate.

The voxel world uses the position and options of all the VoxelViewer nodes to determine where to load blocks, and prioritize updates. For example, a voxel placed 100 units away from a player will have much lower priority than the modifications that player is doing when digging in front of them.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

VoxelViewerConstructor
# VoxelViewer
C#
public VoxelViewer();

Properties6

EnabledInEditorProperty
# EnabledInEditor
C#
public bool EnabledInEditor { get; set; }

Sets whether this viewer will cause loading to occur in the editor. This is mainly intented for testing purposes.

RequiresCollisionsProperty
# RequiresCollisions
C#
public bool RequiresCollisions { get; set; }

If set to true, the engine will generate classic collision shapes around this viewer.

RequiresDataBlockNotificationsProperty
# RequiresDataBlockNotifications
C#
public bool RequiresDataBlockNotifications { get; set; }
RequiresVisualsProperty
# RequiresVisuals
C#
public bool RequiresVisuals { get; set; }

If set to true, the engine will generate meshes around this viewer. This may be enabled for the local player.

ViewDistanceProperty
# ViewDistance
C#
public uint ViewDistance { get; set; }

How far should voxels generate around this viewer. Note: the effective view distance may be limited by the terrain node. Note 2: when using VoxelLodTerrain, this distance essentially acts as a limit to how far the last LOD extends.

ViewDistanceVerticalRatioProperty
# ViewDistanceVerticalRatio
C#
public float ViewDistanceVerticalRatio { get; set; }

Modifies vertical view distance to be a ratio of the VoxelViewer.ViewDistance property. For example, if VoxelViewer.ViewDistance is 100 and this property is 0.5, then horizontal view distance will be 100 and vertical view distance will be 50. This property has limitations: it is only implemented on VoxelLodTerrain when using VoxelLodTerrain.StreamingSystemEnum.Clipbox, and applies only to the last LOD, like view distance.

Methods14

GetNetworkPeerIdint
# GetNetworkPeerId
C#
public int GetNetworkPeerId();
Returns int
GetViewDistanceuint
# GetViewDistance
C#
public uint GetViewDistance();
Returns uint
GetViewDistanceVerticalRatiofloat
# GetViewDistanceVerticalRatio
C#
public float GetViewDistanceVerticalRatio();
Returns float
IsEnabledInEditorbool
# IsEnabledInEditor
C#
public bool IsEnabledInEditor();
Returns bool
IsRequiringCollisionsbool
# IsRequiringCollisions
C#
public bool IsRequiringCollisions();
Returns bool
IsRequiringDataBlockNotificationsbool
# IsRequiringDataBlockNotifications
C#
public bool IsRequiringDataBlockNotifications();
Returns bool
IsRequiringVisualsbool
# IsRequiringVisuals
C#
public bool IsRequiringVisuals();
Returns bool
SetEnabledInEditorvoid
# SetEnabledInEditor
C#
public void SetEnabledInEditor(bool enabled);
Parameters
NameTypeDefault
enabledbool—
SetNetworkPeerIdvoid
# SetNetworkPeerId
C#
public void SetNetworkPeerId(int id);
Parameters
NameTypeDefault
idint—
SetRequiresCollisionsvoid
# SetRequiresCollisions
C#
public void SetRequiresCollisions(bool enabled);
Parameters
NameTypeDefault
enabledbool—
SetRequiresDataBlockNotificationsvoid
# SetRequiresDataBlockNotifications
C#
public void SetRequiresDataBlockNotifications(bool enabled);
Parameters
NameTypeDefault
enabledbool—
SetRequiresVisualsvoid
# SetRequiresVisuals
C#
public void SetRequiresVisuals(bool enabled);
Parameters
NameTypeDefault
enabledbool—
SetViewDistancevoid
# SetViewDistance
C#
public void SetViewDistance(uint distance);
Parameters
NameTypeDefault
distanceuint—
SetViewDistanceVerticalRatiovoid
# SetViewDistanceVerticalRatio
C#
public void SetViewDistanceVerticalRatio(float ratio);
Parameters
NameTypeDefault
ratiofloat—
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.