Back to Filament

setGridSize

docs/android/dokka/filament-android/com.google.android.filament/-view/set-grid-size.md

1.75.0545 B
Original Source

//filament-android/com.google.android.filament/View/setGridSize

setGridSize

[main]
open fun setGridSize(size: Double)

Sets the grid size for grid-based world origin snapping.

Parameters

main

sizeThe size of the grid cell in world units. If set to 0 or negative, the grid size is automatically calculated based on the camera frustum.