Click or drag to resize
IMyVoxelMapsCreateVoxelMapFromStorageName Method

[This is preliminary documentation and is subject to change.]

Adds a prefab voxel to the game world.

Namespace: VRage.Game.ModAPI
Assembly: VRage.Game (in VRage.Game.dll) Version: 1.0.0.0
Syntax
C#
IMyVoxelMap CreateVoxelMapFromStorageName(
	string storageName,
	string prefabVoxelMapName,
	Vector3D position
)

Parameters

storageName
Type: SystemString
The name of which the voxel storage will be called within the world.
prefabVoxelMapName
Type: SystemString
The prefab voxel to add.
position
Type: Vector3D
The Min corner position of the voxel within the world.

Return Value

Type: IMyVoxelMap
The newly added voxel map. Returns null if the prefabVoxelMapName does not exist.
See Also