Class MapComponentBase
- Namespace
- LansMap.Map.Views.Components
Base class for a component that replaces one piece of a map. Attach a subclass to the map's GameObject (or to a child) and it finds the map itself.
public abstract class MapComponentBase : MonoBehaviour
- Inheritance
-
objectObjectComponentBehaviourMonoBehaviourMapComponentBase
- Derived
Properties
Map
The map this component answers for, resolving to the nearest BaseMapView on this GameObject or a parent when the field is empty.
public BaseMapView Map { get; }
Property Value
Methods
OnValidate()
Editor-time self-wiring; a subclass that overrides this must call the base, or the serialized reference stays empty.
protected virtual void OnValidate()