HomeGuides
HomeGuidesLearn about the Immerse SDK installerLog In

Beacon Service

📘

This feature requires the Immerse SDK Enterprise Edition

This is different to the free Immerse SDK. Contact [email protected] if you require access.

Understand the difference between the Free and Enterprise SDK

The Beacon Service is what is used by the Beacon Tool to send pings to other users. Here it is possible to send pings without the requirement for a 'Trigger'.

Send

Sending a ping is as simple as calling a method with the desired location and color of the beacon.

using ImmerseSDK.Beacon;
using UnityEngine;

...
  
var position = new Vector3(0, 1, 0);
var color = Color.red;

BeaconService.send(position, color);

Set Beacon View

From the Beacon Service it is also possible to set or replace the beacon view. This can be useful when you need more control over how your beacons are displayed.

using ImmerseSDK.Beacon;

...
  
BeaconService.SetBeaconView(myBeaconView);