Optionalwidth: numberOptionalheight: numberOptionalsubdivisions: numberOptionalmajorUnitFrequency: numberOptionalminorUnitVisibility: numberOptionalgridRatio: numberOptionalopacity: numberOptionalbackFaceCulling: booleanOptionalmainColor: stringOptionalsecondaryColor: stringOptionalwidthThe size of the grid along X, in model units; the grid is centered on the origin.
OptionalheightThe size of the grid along Z, its depth on the ground plane, in model units.
OptionalsubdivisionsHow many segments the ground mesh is cut into along each side; the spacing of the lines comes
from gridRatio, not from this.
OptionalmajorHow many lines it takes from one thick major line to the next; the thinner lines between them are the minor lines.
OptionalminorHow strongly the thin minor lines between the major ones show, from 0 for hidden to 1 for full.
OptionalgridThe distance between two neighboring lines, in model units.
OptionalopacityHow opaque the grid lines are, from 0 for invisible to 1 for opaque.
OptionalbackWhen true, the grid is not drawn when seen from below.
OptionalmainThe color between the lines, as a hex string. This grid draws only its lines, so the color does not show.
OptionalsecondaryThe color of the grid lines, as a hex string.
Feeds
draw.drawGridMeshanddraw.drawGridMeshNoReturn: the size of the grid on the ground plane, how far apart its lines are and which are drawn thicker, and the color and opacity of its lines.