Start Coroutine by RPC?
Options
Is it possible to start a coroutine the same way as a regular method in C# using RPC? Do I follow the same syntax?
0
Comments
-
Hi @steamcore,
Yes that should be possible using same syntax. Example:public class ExampleMonoBehaviour: MonoBehaviour { [PunRPC] public void ExampleRPC(){ StartCoroutine("ExampleCoroutine"); } IEnumerator ExampleCoroutine(){ yield return null; } }
0 -
Works perfect.
0