Road Assets

This asset allows roads to be shared between levels, and exposes some previously-unavailable properties for configuration.

Properties

Property Name

Type

Default Value

Chart

EObjectChart

None

Depth

float32

0.0

OffsetAlongNormal

float32

0.0

PhysicsMaterial

string

See description

RepeatDistanceScale

float32

1.0

TexturePath

string

See description

Width

float32

0.0

VanillaPhysicsMaterial

enum

See description


Chart EObjectChart None

If not None, overrides how road appears in chart generation.

If None (default) legacy classification is used:

  • Concrete roads wider than 16 meters are Highway.

  • Other concrete roads are Road.

  • Non-concrete roads are Path.


Depth float32 0.0

Total size along the up axis.

Note

If converting a legacy road configuration, please note that Depth shown in the legacy editor is actually half the total depth.


DistanceAlongNormal float32 0.0

Distance along the terrain surface normal to move each road vertex.


PhysicsMaterial Master Bundle Pointer to PhysicMaterial

Unity PhysicMaterial to apply to road collider. Not used if VanillaPhysicsMaterial is assigned.


RepeatDistanceScale float32 1.0

By default, Texture is uniformly scaled along the road according to its aspect ratio and the road’s width. For example, if Width is 8 meters and Texture is 256x128 pixels, the texture will repeat every 4 meters.

This property multiplies the distance along the road before the texture repeats.

Note

If converting a legacy road configuration, the repeat distance was the texture’s height in pixels divided by the Height value. For example: a 64x64 pixel texture with Height of 2 would repeat every 32 meters. To calculate an equivalent RepeatDistanceScale, divide the legacy repeat distance by the road asset’s Width.


TexturePath Master Bundle Pointer to Texture2D

If not specified, the game looks for a texture named Texture in the accompanying asset bundle.


Width float32 0.0

Total horizontal size before the road begins tapering off into the terrain.

Note

If converting a legacy road configuration, please note that Width shown in the legacy editor is actually half the total width.


VanillaPhysicsMaterial string

Optional name of a built-in Unity PhysicMaterial to apply to road collider. For example, “Concrete_Static” or “Gravel_Static” for the legacy road physics materials.