Table of Contents

Class MapRouterComponent

Attach a subclass to a map to route with your own provider instead of the shipped one.

public abstract class MapRouterComponent : MapComponentBase
Inheritance
object
Object
Component
Behaviour
MonoBehaviour
MapRouterComponent
Inherited Members

Remarks

Create() is called once, when the route tool is enabled, and hands ownership of the returned router to that tool: the tool disposes it when it is disabled. Return a fresh instance per call rather than a shared one.

Methods

Create()

Builds the router for one route tool on the main thread; the caller takes ownership of the result.

public abstract IRouter Create()

Returns

IRouter