API reference
API reference
Select your platform
No SDKs available
No versions available

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 created for a specifc room.
Event triggered when the space map is updated.
bool Dirty[Get]

Fields

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

Member Functions

Gets the RenderTexture used for the space map for a given room.
This property is not available until the space map is created.
Parameters
room
The MRUKRoom for which to get the space map texture.
Returns
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 and setting up the capture camera.
Parameters
roomFilter
The MRUK.RoomFilter that determines which rooms are included in the space map, influencing how the space map is generated.
Returns
Initiates the space mapping process for a specific room.
Parameters
room
Reference to MRUKRoom
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