Show / Hide Table of Contents

Class GameObjectModifier

GameObject Modifiers Game object modifiers ran after the mesh modifiers and game object creation.Their main purpose is to work on game object and decorate/improve them in their own ways.They ran for each game object individually. It's possible to do lots of different things with GameObject Modifiers.A simple example would be MaterialModifier, which simply sets random materials to gameobject and submeshes.A more complicated example would be SpawnInside Modifier which instantiates prefabs in a polygon, like trees in a park. Any operation, you want to perform on generated entity, that would require a game object is a good candidate for game object modifiers. For example, things like adding a collider or animation would require a gameobject hence cannot be done in mesh modifier. Game object modifiers is the suggested way of customizing generated game object and we expect developers to fully utilize this by creating their own custom game object modifiers.

Inheritance
ScriptableObject
ModifierBase
GameObjectModifier
AddMonoBehavioursModifier
AddToCollectionModifier
ColliderModifier
DisableMeshRendererModifier
FeatureBehaviourModifier
LayerModifier
MapboxStylesColorModifier
MaterialModifier
NoiseOffsetModifier
PrefabModifier
ReplaceFeatureCollectionModifier
ReplaceFeatureModifier
SpawnInsideModifier
TagModifier
TextureModifier
TextureMonoBehaviourModifier
Inherited Members
ModifierBase.Active
ModifierBase.SetProperties(ModifierProperties)
ModifierBase.Initialize()
ModifierBase.FeaturePreProcess(VectorFeatureUnity)
ModifierBase.UnbindProperties()
ModifierBase.UpdateModifier(Object, EventArgs)
ModifierBase.ModifierHasChanged
ModifierBase.NotifyUpdateModifier(VectorLayerUpdateArgs)
Namespace:Mapbox.Unity.MeshGeneration.Modifiers
Assembly:cs.temp.dll.dll
Syntax
public class GameObjectModifier : ModifierBase

Methods

Clear()

Declaration
public virtual void Clear()

ClearCaches()

Declaration
public virtual void ClearCaches()

OnPoolItem(VectorEntity)

Declaration
public virtual void OnPoolItem(VectorEntity vectorEntity)
Parameters
Type Name Description
VectorEntity vectorEntity

Run(VectorEntity, UnityTile)

Declaration
public virtual void Run(VectorEntity ve, UnityTile tile)
Parameters
Type Name Description
VectorEntity ve
UnityTile tile
Back to top © 2017 Mapbox