Unity SDKAPIMarkers

Markers

This API is used to send engagement markers to the Gamebeast platform.

For more information about Markers, visit the Markers Guide.

var gamebeastMarkers = GamebeastSdk.Markers;

SendMarker(markerType, value)

→ void

This method sends a marker with the specified value to Gamebeast.

markerType

string

The name of the marker.

value

object

The value of the marker.

Usage

gamebeastMarkers.SendMarker("RoundEnded", new { Score = 600, Map = "Office", Duration = 120 });

SendUserMarker(userId, markerType, value)

→ void

This method sends a marker for a specific user with the specified value to Gamebeast.

userId

string

The ID of the user.

markerType

string

The name of the marker.

value

object

The value of the marker.

Usage

gamebeastMarkers.SendUserMarker("user123", "ItemPurchased", new { ItemID = "sword_001", Price = 150 });