{{description>Create cap meshes for volume extends with options for normal inversion, holes, and UV customization. Perfect for capping volumes in 3D models.}} ====== Volume Caps ====== This component is used in example scene(s) such as: 23_CGTube, 27_CGVariableExtrusion, 50_EndlessRunner. Creates flat cap meshes at the open ends of a [[..:datatypes#Volume|Volume]]. Optionally accepts additional volumes to punch holes into the caps. ===== Slots ===== ==== Inputs ==== ^ Name ^ Type ^ Description ^ | Volume | [[..:datatypes#Volume|Volume]] | The volume to cap | | Volume[] (Holes) | Array of [[..:datatypes#Volume|Volume]] | (Optional) Volumes whose cross-sections are subtracted as holes from the caps | ==== Outputs ==== ^ Name ^ Type ^ Description ^ | VMesh[] | Array of [[..:datatypes#VMesh|VMesh]] | The cap meshes | ===== Settings ===== ==== General ==== Controls which ends receive caps and basic mesh options. === Start Cap / End Cap === Whether to build a cap at the start or end of the volume: * **Yes** - always build the cap * **No** - never build the cap * **Auto** - build the cap only if the volume is not closed (i.e. the cap would be visible) === Reverse Normals === Flips the normals of the cap mesh. === Generate UV === When enabled, UV coordinates are calculated for the cap mesh. ==== Start Cap ==== UV and material settings for the start cap. === Swap UV === Swaps U and V coordinates. === Keep Aspect === Preserves texel proportions: * **Off** - no correction applied * **ScaleU** - U is scaled to maintain proportional texels * **ScaleV** - V is scaled to maintain proportional texels === UV Rotation === Rotates the texture on the cap. === UV Offset === Offsets the UV coordinates. === UV Scale === Scales the UV coordinates. === Material === The Unity material to apply to the start cap. ==== End Cap ==== === Clone Start Cap === When enabled, all material settings from the [[#Start Cap]] are reused for the end cap. Disable to configure the end cap independently.