It's the 15th anniversary of Google Maps Platform - Check out the latest news and announcements

Google.Maps.Unity.Intersections.IntersectionArm

Represents an outgoing/incoming road from an intersection.

Summary

Properties

Cancel
bool
Whether to cancel the construction of this arm.
Material
Material
The material to apply to the arm submesh. If this is not set, the material defined in Feature.Style.SegmentishStyle.IntersectionMaterial is used by default.
Segment
The segment that this arm lies on.

Public functions

IsTwoWay(float joinLength)
bool
Returns true if this intersection arm is two-way with the given join length.

Properties

Cancel

bool Cancel

Whether to cancel the construction of this arm.

Material

Material Material

The material to apply to the arm submesh. If this is not set, the material defined in Feature.Style.SegmentishStyle.IntersectionMaterial is used by default.

Segment

Segment Segment

The segment that this arm lies on.

A road may be composed of multiple segments. In cases where an arm lies on multiple segments, this holds the first segment closest to the intersection center.

Public functions

IsTwoWay

bool IsTwoWay(
  float joinLength
)

Returns true if this intersection arm is two-way with the given join length.

Details
Parameters
joinLength
The join length to test.
Returns
True if this intersection arm is two-way with the given join length.