Google.Maps.Feature.Style.SegmentishStyle

Encapsulates immutable styling information that is used to control the way that GameObjects are generated from line-related feature types—such as Segment and LineWater.

Summary

Inheritance

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

Properties

AlwaysCloneMaterials
bool
If true, then the styling system aggressively clones supplied materials before applying them to GameObjects, even if it's not necessary for correct layer rendering. If false, then the styling system uses the orginal supplied material without cloning, where possible.
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.
Material
Material
A material to apply to the segment.
Width
float
The width of the Segment, in meters. The default value is 10.
YEpsilon
float
No longer has any effect and will be removed in a future version.

Classes

Google.Maps.Feature.Style.SegmentishStyle.SegmentishStyleBuilder

The SegmentishStyle builder.

Properties

AlwaysCloneMaterials

bool AlwaysCloneMaterials

If true, then the styling system aggressively clones supplied materials before applying them to GameObjects, even if it's not necessary for correct layer rendering. If false, then the styling system uses the orginal supplied material without cloning, where possible.

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.

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.

Width

float Width

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

YEpsilon

float YEpsilon

No longer has any effect and will be removed in a future version.