Table of Contents

Class MapComponentBase

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
object
Object
Component
Behaviour
MonoBehaviour
MapComponentBase
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

BaseMapView

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()