Component Template Attribute

Note

Inherited from Generate Attributes — shares its anchor, alignment, and per-key transform channels.

Places any USceneComponent repeatedly along the lane at the LengthOfSegment interval — convenient for repeating props such as traffic cones, flagpoles, lamp posts, and power lines. Add it and place keys with Attribute Mode.

Scene components repeated along a road lane

Create new Attribute

Create a new attribute from the Content Browser under the Meta Road category:

Creating a new attribute from the Content Browser Meta Road category

In the Pick Parent Class dialog choose RoadLaneAttributeComponentTemplateDescriptor:

Choosing RoadLaneAttributeComponentTemplateDescriptor as the parent class

Properties

Property

Description

ComponentTemplate

The USceneComponent subclass instantiated once per segment. If it is a USplineMeshComponent, the segment’s spline params are applied to it.

ComponentToSegmentAlign

Placement point within the segment [0 = start, 0.5 = mid, 1 = end].

LengthOfSegment

Target arc-length [cm] of each generated segment (segment density).

Sampler

How the lane is subdivided — By Length of Segment or Between Keys (one component per key interval).

For the shared per-key transform channels (Alpha, Scale, Offset, Roll, width overrides) and Alignment, see How a Generate Attribute follows the lane.

The Component Template attribute's property panel

Drag and Drop

Drag a Component Template attribute profile from the Content Browser onto a road lane to add it directly:

Dragging a Component Template attribute profile onto a road lane

Examples

Sample assets: /MetaRoad/MetaRoad/Profiles/Componets.

See also