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 Volume. Optionally accepts additional volumes to punch holes into the caps.

Name Type Description
Volume Volume The volume to cap
Volume[] (Holes) Array of Volume (Optional) Volumes whose cross-sections are subtracted as holes from the caps
Name Type Description
VMesh[] Array of VMesh The cap meshes

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.

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.

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.