Skip to content

r3f-xr-widgets / GridFloorProps

Interface: GridFloorProps

Defined in: src/components/GridFloor.tsx:9

Props for the GridFloor component

Properties

backgroundColor?

optional backgroundColor: string

Defined in: src/components/GridFloor.tsx:20

Background color of the grid floor.

Default

ts
'#404040' (grey)

color?

optional color: string

Defined in: src/components/GridFloor.tsx:14

Color of the grid dots.

Default

ts
'#aaaaaa' (light grey)

crossColor?

optional crossColor: string

Defined in: src/components/GridFloor.tsx:17

Color of the meter mark crosses.

Default

ts
'#ffffff' (white)

renderOrder?

optional renderOrder: number

Defined in: src/components/GridFloor.tsx:26

Render order for XRLayer compositing. Lower values render behind higher values.

Default

ts
-1000

size?

optional size: number

Defined in: src/components/GridFloor.tsx:11

Size of the grid in meters (width and height).

Default

ts
20

spacing?

optional spacing: number

Defined in: src/components/GridFloor.tsx:23

Spacing between grid dots in meters.

Default

ts
0.1

Released under the MIT License.