Google. Maps. Feature. Style. Settings. SegmentStyleSettings
Scriptable object for segment style settings.
Summary
Inheritance
Inherits from: Google.Maps.Feature.Style.Settings.AbstractStyleSettings
Public attributes |
|
---|---|
BorderMaterial
|
Material for borders. null if there is no border.
|
BorderWidth = 1.0f
|
float
Border width.
|
IntersectionArmLength = 3.5f
|
float
The length of the intersection arms.
|
IntersectionJoinLength = 7
|
float
If the length of a road connecting two intersections is shorter than the join length, the two intersections are joined.
|
IntersectionMaterial
|
Intersection material for segments.
|
Material
|
Material
Fill material for segments.
|
MaxIntersectionArmDistance = 20
|
float
The maximum distance an intersection arm can start from the center of the intersection it's connected with.
|
Width = 7.0f
|
float
Segment width.
|
Public functions |
|
---|---|
Apply(SegmentStyle style)
|
Apply settings to SegmentStyle.
|
Public attributes
BorderWidth
float BorderWidth = 1.0f
Border width.
IntersectionArmLength
float IntersectionArmLength = 3.5f
The length of the intersection arms.
IntersectionJoinLength
float IntersectionJoinLength = 7
If the length of a road connecting two intersections is shorter than the join length, the two intersections are joined.
In most cases, this should be greater than twice the arm length to avoid overlapping arms.
Material
Material Material
Fill material for segments.
MaxIntersectionArmDistance
float MaxIntersectionArmDistance = 20
The maximum distance an intersection arm can start from the center of the intersection it's connected with.
Two roads may overlap indefinitely, usually caused by a large road width. In these cases, it may not be possible to generate an acceptable intersection. Settings a maximum arm distance prevents abnormally large intersections from being generated.
Public functions
Apply
SegmentStyle Apply( SegmentStyle style )
Apply settings to SegmentStyle.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
New SegmentStyle with settings applied.
|