Storing Data in Voxels

Modified on Sun, 26 Dec 2021 at 10:00 AM

Voxel Play allows you to store/read custom user data on voxel positions. These values will be stored in the saved game file as well.


You can use the following methods listed in the API section:


- VoxelSetProperty: let you assign a float or string value to a voxel under a tag. You can assign any number of properties to a voxel.


- VoxelGetProperty: use this method to retrieve the value of any property previously set with VoxelSetProperty.


- VoxelClearProperty: this method will remove the property assigned to a voxel.


Please note that if you destroy the voxel, any properties associated to that voxel will also be removed.


If you're unfamiliar with the API, please start here.


For other ways to save custom data in Voxel Play, please read the "Loading & Saving Game Sessions" page.

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