NOTICE: Google Maps Platform gaming services is deprecated as of October 18, 2021. Current users will have continued access until December 31, 2022. During this time, we will continue to provide support and fixes to major bugs and outages. See the Gaming Services Transition Guide for resources to help you plan the next steps for your projects.

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.