Meteor-Unity  3
A C#-based SDK for connecting Unity to Meteor servers
Meteor.Method Class Reference

Methods are remote functions that Meteor clients can invoke. Use Method.Call to call a method by name with the specified arguments. Returns a Method object. You must call More...

Inheritance diagram for Meteor.Method:
Meteor.Method< TResponseType >

Detailed Description

Methods are remote functions that Meteor clients can invoke. Use Method.Call to call a method by name with the specified arguments. Returns a Method object. You must call

yield return (Coroutine)instance; inside an IEnumerator/Coroutine function to actually execute the call. You can also call ExecuteAsync on the method instance to execute asynchronously outside of an IEnumerator. The name of the method to call corresponds to the key in your Meteor.Methods({key: function value()}) statement.

Examples:

var methodCall = Method<string>.Call("MyMethodWhichREturnsString");
yield return (Coroutine)methodCall;
string result = methodCall.Result;
var callAndForgetAboutResult = Method<string>.Call("MyMethodWhichReturnsString").ExecuteAsync();

The documentation for this class was generated from the following file: