static void CreateCogBlockVolume() { int width = 256; int height = 32; int depth = 256; CogBlockVolumeData data = Cubiquity.VolumeDataAsset.CreateEmptyVolumeData <CogBlockVolumeData>(new Region(0, 0, 0, width - 1, height - 1, depth - 1)); GameObject obj = CogBlockVolume.CreateGameObject(data); // And select it, so the user can get straight on with editing. Selection.activeGameObject = obj; int floorThickness = 8; QuantizedColor floorColor = CubSub.HexColor.QuantHex("FF5555FF"); for (int z = 0; z <= depth - 1; z++) { for (int y = 0; y < floorThickness; y++) { for (int x = 0; x <= width - 1; x++) { data.SetVoxel(x, y, z, floorColor); } } } }