Voxel Plugin
1.2 Legacy
1.2 Legacy
  • Getting Started
    • Quick Start
      • Examples
    • World Generation
      • C++ World Generators
      • Voxel Graph Quick Start
      • Floating Islands
  • Core Systems
    • VoxelWorlds
      • Import Content
      • Voxel Data Items
      • Collisions and Navmesh
      • World Size and Level Of Details
      • Save and Load
      • Multiplayer
      • Easy Systems RPG
    • Voxel Graphs
      • Voxel Graph General Concepts
      • Voxel Graphs Tips and Tricks
      • Voxel Graph Nodes Reference
      • Voxel Graph Outputs
      • Voxel Graph Parameters
      • Custom Graph Nodes
    • Voxel Spawners
    • Materials
      • Multi Index Materials
  • Technical Notes
    • Performance and Profiling
    • Console Commands
    • Blueprint API
    • Release Notes
      • Release Notes 1.1
      • Release Notes 1.2
    • UE5.1 - Material Crash
Powered by GitBook
On this page
  • Overview
  • Example
  • Spawner Saves

Was this helpful?

  1. Core Systems
  2. VoxelWorlds

Save and Load

PreviousWorld Size and Level Of DetailsNextMultiplayer

Last updated 1 year ago

Was this helpful?

The plugin has a very efficient save and load system. Combined with Unreal's builtin Save System, it allows you to save your voxel worlds to disk!

Overview

Voxel saves are stored in structs. You have two kind of saves:

  • Uncompressed: the data is stored uncompressed. Instant save/load, but takes up some memory.

  • Compressed: the data is compressed. Takes much less memory, but takes longer to create/load, as the data needs to be compressed/uncompressed.

You can get a save from the world using the following functions:

You can then store the save structs in a Save Game.

For an example of Save Game, see /Voxel/Examples/ComplexController/VoxelComplexController_SaveExample and the Unreal Docs:

To load the saves, use the following functions:

Example

You can find an example of save/load in /Voxel/Examples/ComplexController/VoxelComplexController_UI:

GetVoxelWorld simply iterates all the voxel worlds in the scene:

Spawner Saves

Saving voxel spawners positions requires some more work. See .

https://docs.unrealengine.com/en-US/Gameplay/SaveGame/index.html
https://www.youtube.com/watch?v=_4usRrTiqak
Voxel Spawners