class_LayerPrefabPlacementBase
title: class LayerPrefabPlacementBase toc_max_heading_level: 4
class LayerPrefabPlacementBase
(Niantic.Lightship.Maps.MapLayers.Components.BaseTypes.LayerPrefabPlacementBase)
概要
指定されたプレハブからオブジェクトをインスタンス化する、すべての MapLayerComponent の基本クラス。
template <T>
class LayerPrefabPlacementBase: Niantic.Lightship.Maps.MapLayers.Components.BaseTypes.MapLayerComponent {
public:
// メソッド
PooledObject<T> PlaceInstance(in LatLng position, string instanceName = null);
virtual PooledObject<T> PlaceInstance(
in LatLng position,
in Quaternion rotation,
string instanceName = null
);
PooledObject<T> PlaceInstance(in Vector3 position, string instanceName = null);
PooledObject<T> PlaceInstance(
in Vector3 position,
in Quaternion rotation,
string instanceName = null
);
virtual override void Initialize(
LightshipMapView lightshipMapView,
GameObject parent
);
virtual override void OnMapOriginChanged();
protected:
// メソッド
virtual abstract Transform GetTransform(T instance) = 0;
virtual abstract GameObject GetGameObject(T instance) = 0;
virtual void OnObjectPoolAcquire(PooledObject<T> pooledObject);
virtual void OnObjectPoolRelease(T instance);
virtual Vector3 GetObjectScale(double mapRadius);
virtual Quaternion GetObjectRotation(in Quaternion rotation);
virtual Vector3 GetObjectPosition(in LatLng location);
};
// 直接の派生クラス
template <T>
class LayerMonoBehaviourPlacement;
継承メンバー
public:
// メソッド
virtual void Initialize(LightshipMapView lightshipMapView, GameObject parent);
virtual abstract void OnMapOriginChanged() = 0;
```cs
protected:
// フィールド
LightshipMapView LightshipMapView;
GameObject ParentMapLayer;