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;Markers are attributed to the local user’s distinct id and batched before sending. Batches are flushed automatically when full, every few seconds, and when the app quits or is backgrounded. Failed sends are retried, and anything still unsent when the app closes is persisted on-device and delivered on the next launch.
SendMarker(markerType, value)
→ void
This method sends a marker with the specified value to Gamebeast.
The value must be object-like, such as an anonymous type, class, or dictionary. Payloads may contain Unity types like Vector3.
markerType
string
The name of the marker.
value
object
The value of the marker. Optional.
Usage
gamebeastMarkers.SendMarker("RoundEnded", new { Score = 600, Map = "Office", Duration = 120 });