Google.Maps.Feature.Style.SegmentishStyle.SegmentishStyleBuilder

The SegmentishStyle builder.

Summary

Inheritance

Inherits from: GameObjectStyleBuilder
Direct Known Subclasses:Google.Maps.Feature.Style.LineWaterStyle.Builder, Google.Maps.Feature.Style.SegmentStyle.Builder

Properties

BorderMaterial
A material to apply to the border of the segment.
BorderWidth
float
The width of the Segment border, in meters. The default value is 1.
IntersectionArmLength
float
IntersectionJoinLength
float
IntersectionMaterial
Material
Material
A material to apply to the segment.
MaxIntersectionArmDistance
float
Width
float
The width of the Segment, in meters. The default value is 10.

Protected functions

SegmentishStyleBuilder()
The SegmentishStyleBuilder class default constructor.
SegmentishStyleBuilder(SegmentishStyle style)
A copy constructor that shallow-copies style values into the builder.

Properties

BorderMaterial

Material BorderMaterial

A material to apply to the border of the segment.

If a value for BorderMaterial isn't set, then this value will be null, and no border is drawn. If a value is set, then an additional GameObject is created to represent the border of the Segment. This GameObject is a child of the primary GameObject, and is identical except for width, which is controlled by Width and BorderWidth. To be effective, this material should have all of the properties of a normal basemap material, but with a UnityEngine.Material.renderQueue value that causes it to be rendered between basemap features and the primary segment Material.

The border material is intended for use with roads of a single flat color. If a value for BorderMaterial is set, then the z-ordering for roads won't work. This works fine for flat colored roads, but BorderMaterial should not be used with textured roads.

BorderWidth

float BorderWidth

The width of the Segment border, in meters. The default value is 1.

The BorderWidth is applied outside the segment. For example, a segment with Width of 10 and BorderWidth of 1 will have a total width of 12 meters. BorderWidth is applied only when a BorderMaterial is not null.

IntersectionArmLength

float IntersectionArmLength

IntersectionJoinLength

float IntersectionJoinLength

IntersectionMaterial

Material IntersectionMaterial

Material

Material Material

A material to apply to the segment.

Meshes created using the style default to Unity's default MeshRenderer material in the event that no material is provided. The default value is null.

MaxIntersectionArmDistance

float MaxIntersectionArmDistance

Width

float Width

The width of the Segment, in meters. The default value is 10.

Protected functions

SegmentishStyleBuilder

 SegmentishStyleBuilder()

The SegmentishStyleBuilder class default constructor.

SegmentishStyleBuilder

 SegmentishStyleBuilder(
  SegmentishStyle style
)

A copy constructor that shallow-copies style values into the builder.

Use this copy constructor when you want to create a new style object based on an existing SegmentishStyle.

Details
Parameters
style
The Style object.