The '''GridMesh''' component generates a procedural mesh for use with [[Component:MeshRenderer|Mesh Renderers]] that is like a [[Component:QuadMesh|Quad Mesh]] but has multiple squares instead of being one big square.
Generates a procedural mesh for use with [[Component:MeshRenderer|Mesh Renderers]] that is like a [[Component:QuadMesh|Quad Mesh]] but has multiple squares instead of being one big square.
<!--T:2-->
<!--T:2-->
Line 31:
Line 29:
<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
Attach to a slot and insert into a [[Component:MeshRenderer]] to see the geometry. Don't forget to use a [[Material]].
The GridMesh component generates a procedural mesh for use with Mesh Renderers that is like a Quad Mesh but has multiple squares instead of being one big square.
If true, integrating this asset (e.g. processing procedural assets) gets higher priority than assets with this flag off. An example is user laser procedural meshes.
the bounding box this component should say it has when OverrideBoundingBox is enabled. Useful for bounding box calculations with Flux, or changing the selection box for this component when rendered.
Bake meshes is a sync method that creates a static mesh component with this component, replaces all references to this component with the static mesh component, then deletes this component.