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.GameObjectStyleDirect Known Subclasses:Google.Maps.Feature.Style.LineWaterStyle, Google.Maps.Feature.Style.SegmentStyle
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.
|
Classes |
|
---|---|
Google. |
The SegmentishStyle 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