player.setStreamSyncedMeta

Description

Used to store cross-resource accessible information. This functionality stores an object on a player that can than be accessed with getStreamSyncedMeta. This can also be accessed on client-side.

The player on client-side is only updated if they are in streaming range of another player.

This type of meta is accessible anywhere but can only be set on server-side.

Syntax

setStreamSyncedMeta(key: string, value: any): void;

You can store literally anything. Except functions.

Real World Example

player.setStreamSyncedMeta('myData', 'hello from meta');

results matching ""

    No results matching ""