Table of Contents
A POI (Point of Interest), also known as destination or location, is just a CompassProPOI script added to any game object in the scene. You can create an empty game object and add this script to it, or attach the script to an existing game object in the scene.
You can add any number of POIs to the scene, and you can do it using Unity Editor or scripting (C#).
Using Unity Editor to add POIs to the scene
To create a new game object as a POI, just select Game Object > Create Other > Compass POI:
You can also simply attach a Compass Pro POI script to an existing game object, and it will work as well:
Using C# to add POIs to the scene
Simply attach the component CompassProPOI to any game object and populate it’s properties.
using CompassNavigatorPro; … GameObject myGameObject = … CompassProPOI poi = myGameObject.AddComponent<CompassProPOI>(); poi.title = “the title for this poi”; …
Get a look into CompassProPOI script for a list of available properties (same than shown in the Inspector).