Skip to main content

Trigger Remote Procedure Call

The Gamium Clientcommunicates with theGamium Engine to remotely invoke the functions contained in the game. Before performing this action, check the supporting function through the guide first.

Unity Rpc Calls


You can use RpcBy by specifying the desired calling method.

You can use it as below.

await gamium.executeRpc(
RpcBy.method('Gamium.Private.CodebaseSample', 'CallParam1', 10),
);
const field = await gamium.executeRpc(
RpcBy.field('Gamium.Private.CodebaseSample', 'field'),
);
const property = await gamium.executeRpc(
RpcBy.property('Gamium.Private.CodebaseSample', 'property'),
);