Key components

Modified on Fri, 29 Mar 2024 at 05:33 PM

Voxel Play uses 4 key components (MonoBehaviours):



  • VoxelPlayEnvironment: the world manager. Manages chunks and rendering and must be present in any scene.


The following components are optional. Voxel Play can work with just the VoxelPlayEnvironment and a camera. However, the following components can be useful for prototyping or as a starting point for your project:


  • VoxelPlayFirstPersonController: the player first person controller. Currently Voxel Play provides many features for first person view games but it can also work with a standalone camera.
  • VoxelPlayPlayer: represents the player (life, inventory, attack attributes, …). Must be present as it holds some character skills required by the FPS controller (like hit range).
  • VoxelPlayBehaviour: syncs voxel lighting with the GameObject material. This component is optional but must be attached to any gameobject if you want it to be affected by the voxel illumiination (also known as smooth lighting).


In the following section, we’ll see how to create and configure each one.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article