Google.Maps.Feature.Style.ExtrudedStructureStyle

Encapsulates immutable styling information used to control how GameObjects are generated from ExtrudedStructures.

Summary

Inheritance

Inherits from: Google.Maps.GameObjectStyle

Public types

RoofMaterialAlignmentType{
  AlignToWorld,
  AlignToDirection
}
enum
A set of values that specify how the roof material is aligned.

Public static attributes

DefaultStyle = new Builder().Build()
Default styles.

Properties

ApplyFixedHeight
bool
Specifies whether to override the ExtrudedStructure's height with FixedHeight. The default value is false.
ExtrudedBuildingFootprintHeight
float
The height applied to buildings where the feature shape has no server-supplied height. Defaults to 10.
FixedHeight
float
When ApplyFixedHeight is set to true, the ExtrudedStructure is scaled to this height, measured in meters. The default value is 1.
Prefab
GameObject
If a value for the property is set, then it replaces all of the GamesObjects that the style is applied to with this prefab. The default value is null.
RoofMaterial
Material
The ExtrudedStructure's roof material. The default value is null.
RoofMaterialAlignment
Specifies how the roof material is aligned. The default is to align the roof material in the direction of the ExtrudedStructure.
WallMaterial
Material
The ExtrudedStructure's wall material. The default value is null.

Public functions

AsBuilder()
Returns a new Builder based on this style object.

Classes

Google.Maps.Feature.Style.ExtrudedStructureStyle.Builder

The ExtrudedStructureStyle builder.

Public types

RoofMaterialAlignmentType

 RoofMaterialAlignmentType

A set of values that specify how the roof material is aligned.

Properties
AlignToDirection

Align the material in the direction of the ExtrudedStructure.

AlignToWorld

Align the material in the XZ-axes of the parent GameObject.

Public static attributes

DefaultStyle

readonly ExtrudedStructureStyle DefaultStyle = new Builder().Build()

Default styles.

Properties

ApplyFixedHeight

bool ApplyFixedHeight

Specifies whether to override the ExtrudedStructure's height with FixedHeight. The default value is false.

ExtrudedBuildingFootprintHeight

float ExtrudedBuildingFootprintHeight

The height applied to buildings where the feature shape has no server-supplied height. Defaults to 10.

FixedHeight

float FixedHeight

When ApplyFixedHeight is set to true, the ExtrudedStructure is scaled to this height, measured in meters. The default value is 1.

Prefab

GameObject Prefab

If a value for the property is set, then it replaces all of the GamesObjects that the style is applied to with this prefab. The default value is null.

RoofMaterial

Material RoofMaterial

The ExtrudedStructure's roof material. The default value is null.

RoofMaterialAlignment

RoofMaterialAlignmentType RoofMaterialAlignment

Specifies how the roof material is aligned. The default is to align the roof material in the direction of the ExtrudedStructure.

WallMaterial

Material WallMaterial

The ExtrudedStructure's wall material. The default value is null.

Public functions

AsBuilder

Builder AsBuilder()

Returns a new Builder based on this style object.