How To Remove Itself From The Field

You may need to notify remote clients that your client is no longer in the field. The example below shows how to send a notification of client disappearance and the event listener to handle notifications from the remote clients.

 

// This is the event handler for remote client disappearance
field.OnDisappear += HandleDiarkisFieldDisappear;

// Notify all remote clients within the field of view that you are no longer in the field
field.Disappear();

private void HandleDiarkisFieldDisappear(string uid)
{
// uid is the User ID of the client disappeared
}