API reference

SpaceMap Class

Extends MonoBehaviour

Fields

MRUK.RoomFilter CreateOnStart[Get]
Texture2D TextureMap[Get]
Gradient MapGradient[Get]
float InnerBorder[Get]
float OuterBorder[Get]
float MapBorder[Get]

Properties

The center of the texture.
Note that Offset.y aligns with Unity's Z.
The dimensions of the texture, including the MapBorder.
Note that Scale.y aligns with Unity's Z.

Member Functions

void CalculateMap
( MRUKRoom room )
A surface-relative value of how far a position is from all SceneAPI surfaces negative values are behind the surface i.e.
outside of the room or inside a volume
void ResetFreespace ( )
Color clamps to edge color if worldPosition is off-grid.
getBilinear blends the color between pixels.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon