(3 intermediate revisions by the same user not shown)
Line 6:
Line 6:
|Name=Cylinder Mesh
|Name=Cylinder Mesh
}}
}}
A cylinder mesh is a component that is used to provide a mesh to render. The mesh that it provides is a procedural 3D cylinder with a number of sides and a radius.
The '''CylinderMesh''' component is used to provide a mesh to render. The mesh that it provides is a procedural 3D cylinder with a number of sides and a radius.
<!--T:2-->
<!--T:2-->
Line 21:
Line 21:
|FlatShading|Bool| Disable smooth shading.
|FlatShading|Bool| Disable smooth shading.
|UVScale|Float2| The inverse of the size the material should appear on the surface as.
|UVScale|Float2| The inverse of the size the material should appear on the surface as.
The CylinderMesh component is used to provide a mesh to render. The mesh that it provides is a procedural 3D cylinder with a number of sides and a radius.
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.
Usage
Attach to a slot, and assign to a Mesh Renderer to see what it looks like. Don't forget to use a Material.
Examples
An example of what a default rotated cylinder mesh looks like