API reference

SpaceMapGPU Class

Extends MonoBehaviour
Manages the creation and updating of a SpaceMap using GPU resources.
This class is designed to handle dynamic environments, providing real-time updates to the spatial map.

Properties

Event triggered when the space map is initially created.
Event triggered when the space map is updated.
bool Dirty[Get]

Fields

MRUK.RoomFilter CreateOnStart[Get]
int TextureDimension[Get]
Gradient MapGradient[Get]
LayerMask layerMask[Get]

Member Functions

Initiates the space mapping process based on the specified room filter.
This method sets up the necessary components and configurations to generate the space map, including updating textures, initializing effect meshes, setting up the capture camera, and applying materials.
Parameters
roomFilter
The MRUK.RoomFilter that determines which rooms are included in the space map, influencing how the space map is generated.
Color clamps to edge color if worldPosition is off-grid.
getBilinear blends the color between pixels.
Parameters
worldPosition
The world position to sample the color from.
Returns
The color at the specified world position. Returns black if the capture camera is not initialized.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon