Google.Maps.Feature.ExtrudedStructure

A MapFeature that represents an extruded structure.

Summary

For example, a building extruded from footprint and height data.

Backed by Shape.ExtrudedArea shape geometry.

Inheritance

Inherits from: Google.Maps.Feature.MapFeature

Constructors and Destructors

ExtrudedStructure(ExtrudedArea shape, TileCoord tileCoord, StructureMetadata metadata)
The ExtrudedStructure class constructor.

Properties

DefaultGameObjectName
override string
The default name to use for the associated GameObject.
IsStaticBatchable
override bool
Indicates whether this MapFeature is a valid candidate for static batching.
IsStitchable
override bool
Indicates whether this MapFeature has stitchable features.
Metadata
The feature metadata as a StructureMetadata.

Public attributes

Shape
readonly ExtrudedArea
A geometric representation of the ExtrudedStructure.

Public functions

GetBoundary()
IEnumerable< Vector2 >
Obsolete method previously used to implement building stitching.
GetBoundaryOrigin()
Vector2
Obsolete method previously used to implement building stitching.
GetShape()
virtual override MapFeatureShape
Returns the shape of a MapFeature if it has one.
Returns
Returns a MapFeatureShape instance representing the shape of the feature if it has one, otherwise returns null.
ToString()
override string

Properties

DefaultGameObjectName

override string DefaultGameObjectName

The default name to use for the associated GameObject.

This name is used when the MapFeatureMetadata doesn't have an explicit display name.

IsStaticBatchable

override bool IsStaticBatchable

Indicates whether this MapFeature is a valid candidate for static batching.

Note: Any feature that is not stitchable is batchable.

IsStitchable

override bool IsStitchable

Indicates whether this MapFeature has stitchable features.

Currently, features are either stitchable (buildings) or not-stitchable (everything else). We don't currently support partially stitching large features.

Metadata

StructureMetadata Metadata

The feature metadata as a StructureMetadata.

Public attributes

Shape

readonly ExtrudedArea Shape

A geometric representation of the ExtrudedStructure.

Public functions

ExtrudedStructure

 ExtrudedStructure(
  ExtrudedArea shape,
  TileCoord tileCoord,
  StructureMetadata metadata
)

The ExtrudedStructure class constructor.

Details
Parameters
shape
A geometric representation of the Structure.
tileCoord
The coordinates of the tile containing this feature.
metadata
Associated metadata.

GetBoundary

IEnumerable< Vector2 > GetBoundary()

Obsolete method previously used to implement building stitching.

GetBoundaryOrigin

Vector2 GetBoundaryOrigin()

Obsolete method previously used to implement building stitching.

GetShape

virtual override MapFeatureShape GetShape()

Returns the shape of a MapFeature if it has one. Returns

Returns a MapFeatureShape instance representing the shape of the feature if it has one, otherwise returns null.

ToString

override string ToString()

Send feedback about...

Google Maps Platform gaming solution
Google Maps Platform gaming solution