Density Canvas
Last updated
Last updated
Density canvases can be used to let players do voxel edits.
Start by following the Brush & Channels page to setup a new voxel channel.
Once you have a channel, create a new Density Canvas:
In the Density Canvas, assign the channel to your voxel channel:
In your meta graph, instead of sampling a channel, sample your density canvas:
Here I also create an infinite flat brush to have a flat ground.
In the blueprint you want to use to edit your canvas, add a new variable of type Voxel Density Canvas and set its default value to be our canvas asset:
You can then use a variety of functions to edit your canvas at runtime:
The Position/Radius are in world space.
By default, edits made in PIE will be persisted. To avoid that, you can make a new canvas at runtime & assign it to your graph:
Canvases do not currently support save/loads