class LayerGameObjectInstance
(Niantic.Lightship.Maps.MapLayers.Components.LayerGameObjectInstance)
Overview
This MapLayerComponent contains and manages a single GameObject instance
class LayerGameObjectInstance: Niantic.Lightship.Maps.MapLayers.Components.BaseTypes.MapLayerComponent {
public:
// methods
virtual override void OnMapOriginChanged();
virtual override void Initialize(
LightshipMapView lightshipMapView,
GameObject parent
);
};
Inherited Members
public:
// methods
virtual void Initialize(LightshipMapView lightshipMapView, GameObject parent);
virtual abstract void OnMapOriginChanged() = 0;
```cs
protected:
// fields
LightshipMapView LightshipMapView;
GameObject ParentMapLayer;
Detailed Documentation
This MapLayerComponent contains and manages a single GameObject instance
Methods
OnMapOriginChanged
virtual override void OnMapOriginChanged()
Called from this component's MapLayer when its LightshipMapView has been repositioned to the scene's origin.
Initialize
virtual override void Initialize(
LightshipMapView lightshipMapView,
GameObject parent
)
Called from the LightshipMapView associated with this component's MapLayer at startup.