Optimizing Build Size
intermediate troubleshootingVoxel Play 3 · Troubleshooting & FAQ
Overview
Voxel Play includes numerous demo resources and shaders that can be removed to reduce build size and compilation time. Note that shader compilation occurs during the initial build; Unity caches compiled variants in the Library folder for faster subsequent builds.
1. Remove Demo Resources
Delete these folders if not used:
DemosfolderVoxel Play/Resources/Worlds/ColorizerVoxel Play/Resources/Worlds/EarthVoxel Play/Resources/Worlds/EarthTestComputeVoxel Play/Resources/Worlds/HQForest
2. Remove Sample Character
- Delete
Voxel Play/ThirdPartyfolder
3. Remove Unused Default Textures
- Delete
Voxel Play/Defaults/Shorefolder if not using these voxel definitions or shore textures - Delete
Voxel Play/Defaults/Water/water*textures if using custom water textures
4. Remove Unused Shaders
- Delete
VPCurved*files if not using curved world feature - Delete
VPIndirect*files if not using compute buffers option - Delete
VPSkybox*files if using custom skybox - Delete
VPVoxelTriangleOpaqueWorldSpaceUV*files if not overriding default opaque render type - Delete
VPVoxelTriangleOpaqueAnimatedshader if not using animated voxel definitions - Delete
VPVoxelTriangleCloudif not using voxel clouds
Shaders are located in Voxel Play/Resources/Shaders/.
5. Remove Unused Shader Features
- Remove
#pragma multi_compile _ VOXELPLAY_USE_OUTLINEfrom shaders if not using outline option - Remove
VOXELPLAY_USE_PARALLAXkeyword from shaders if not using relief mapping
6. Set Managed Stripping Level
In Project Settings > Player, set "Managed Stripping Level" to "Low" or higher.
Was this page helpful?
Suggest an improvement
Help us improve this documentation page.