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.WillCreateIntersectionArgs, 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 UnityEngine.GameObject creation for this map feature.
|
MapFeature
|
readonly TM
An immutable Feature.MapFeature that corresponds to the UnityEngine.GameObject being created.
|
StaticBatchingPolicy = StaticBatchingPolicyType.Default
|
Determines whether to generate the resulting UnityEngine.GameObject as static. Static UnityEngine.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 Feature.Style that will be applied during UnityEngine.GameObject creation.
|
Protected functions |
|
---|---|
WillCreateEventArgs(TM mapFeature, TS style)
|
The
WillCreateEventArgs class constructor. |
Public attributes
Cancel
bool Cancel = false
Determines whether to prevent UnityEngine.GameObject creation for this map feature.
MapFeature
readonly TM MapFeature
An immutable Feature.MapFeature that corresponds to the UnityEngine.GameObject being created.
Contains all known type, geometry, and metadata information.
StaticBatchingPolicy
StaticBatchingPolicyType StaticBatchingPolicy = StaticBatchingPolicyType.Default
Determines whether to generate the resulting UnityEngine.GameObject as static. Static UnityEngine.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 Feature.Style that will be applied during UnityEngine.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 |
|