Google.Maps.Event.WillCreateEventArgs< TM, TS >

The base class for WillCreate event arguments.

Summary

Inheritance

Direct Known Subclasses:Google.Maps.Event.WillCreateAreaWaterArgs, Google.Maps.Event.WillCreateExtrudedStructureArgs, Google.Maps.Event.WillCreateLineWaterArgs, Google.Maps.Event.WillCreateModeledStructureArgs, Google.Maps.Event.WillCreateRegionArgs, Google.Maps.Event.WillCreateSegmentArgs

Public attributes

Cancel = false
bool
Determines whether to prevent GameObject creation for this map feature.
MapFeature
readonly TM
An immutable Feature.MapFeature that corresponds to the GameObject being created.
StaticBatchingPolicy = StaticBatchingPolicyType.Default
Determines whether to generate the resulting GameObject as static. Static GameObjects that share the same material can be batched together to save draw calls, but they cannot be transformed. For more information, see Draw call batching.
Style
TS
An immutable Style that will be applied during GameObject creation.

Protected functions

WillCreateEventArgs(TM mapFeature, TS style)
The WillCreateEventArgs class constructor.

Public attributes

Cancel

bool Cancel = false

Determines whether to prevent GameObject creation for this map feature.

MapFeature

readonly TM MapFeature

An immutable Feature.MapFeature that corresponds to the GameObject being created.

Contains all known type, geometry, and metadata information.

StaticBatchingPolicy

StaticBatchingPolicyType StaticBatchingPolicy = StaticBatchingPolicyType.Default

Determines whether to generate the resulting GameObject as static. Static GameObjects that share the same material can be batched together to save draw calls, but they cannot be transformed. For more information, see Draw call batching.

Style

TS Style

An immutable Style that will be applied during GameObject creation.

To change styles, create a new Feature.Style.IStyle instance, and assign it to this property.

Protected functions

WillCreateEventArgs

 WillCreateEventArgs(
  TM mapFeature,
  TS style
)

The WillCreateEventArgs class constructor.

Details
Parameters
mapFeature
The MapFeature associated with this GameObject.
style
The Style that is about to be applied to the GameObject.