Immerse SDK
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Via Code

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.