Events to unity

All events that can be send to the map using the sendEvent method.

Section

Event name

Description

Camera

zoomIn

Zoom in camera with a step of 'zoomValue'

Camera

zoomOut

Zoom out camera with a step of 'zoomValue'

Camera

zoomReset

Reset camera zoom to default position

Camera

getZoom

Return the current zoom value

Camera

setZoom

Set current zoom level

Camera

zoomOnMapcontainer

Move camera to a container and zoom on it

Camera

setCameraView

Set camera mode

Camera

followUser

Allow or disallow the user tacking by the main camera

Template

getAllTemplates

Fetch all templates availables for current map

Template

setLocalTemplate

Apply a template to a container

Template

clearLocalTemplate

Remove a template from a container

Template

clearAllLocalTemplates

Remove all templates of the map

Itinerary

setItineraryToEntityWithId

Calculate and generate an itinerary to a specific container (containers are objects like table, doors, stairs, shelves etc ...)

Itinerary

setPathColor

Change itinerary path color

Itinerary

setMoveFpsToTarget

Enable camera to follow user position. it's a toggle event, call it second time for undo

Itinerary

clearItinerary

Start animation from terminal (or current user position) to destination

Container

onSetWallsVisibility

Show or hide walls

Container

setOutlineContainer

Enable or disable an outline on a specific container

Container

clearAllOutline

Delete all outline

Floor

getFloors

Get all available floors

Floor

setFloor

Set current floor. Others floors are hidden

Floor

resetFloors

Show all floor

Global

changeBackgroundColor

Change background colour

Global

screenshot

Take a screenshot of the map and return the base64 image

Global

destroyMap

Remove current map from device memory. Used for change current map

Global

setMouseListener

Allow unity to fire event in relation with mouse (on click, on hover etc ...)

Global

enableRealTimeUpdates

Enable real time updates when a container changed from the server

Global

enableOutsideMap

Enable the outside map of the building

Global

activeLog

Allow to disable logs or increase its verbosity

Temporary waypoint

insertTemporaryWaypoint

Create and show a new waypoint on the map

Temporary waypoint

removeTemporaryWaypoint

Delete a temporary waypoint

Temporary waypoint

moveTemporaryWaypoint

Move a waypoint position

Temporary waypoint

toggleTemporaryWaypoints

Show or hide all temporaries waypoints

Temporary waypoint

toggleTemporaryWaypoint

Show or hide an temporary waypoint

Temporary waypoint

getAllTemporaryWaypoints

Get all temporary waypoints

Metadata

getAllMetaData

Return all metadata

User position

setUserPosition

Define current user position

User position

getUserPosition

Get current user position in the map

User position

enableUserOrientation

Activate / disable user orientation

User position

focusToUserPosition

Center map on user position

UI

hideAllUI

Hide all UI

UI

showAllUI

show all UI

UI

filterUI

Filter UI shown by key value metadata

UI

enableOutsideMap

Show or hide google map in the background

UI

setUIScale

Define text and icon size


On This Page
Events to unity