Demos that use webhooks?
Options
I am having trouble understanding how webhooks work and wanted to know if there was a demo available so I could see it in action. I know it is needed for asynchronous games but I can't quite understand how to apply it.
0
Best Answer
-
Hi @EHoops,
Photon Realtime Unity SDK should not be mixed with PUN1.
I think you can use Photon Realtime Unity SDK only OR (better) port Memory Demo to PUN2!
You can do so easily, just use Memory Demo in a separate project to understand it then add your logic using PUN2. PUN2 includes a better newer version unreleased of Photon Realtime, since PUN2 is built on top of Photon Realtime.
The main things you need: RaiseEvent, SetProperties, webhooks, webflags and webRPCs.5
Answers
-
Hi @EHoops,
The Memory Demo from Photon Realtime Unity SDK makes use of webhooks and webRPCs.
We offer a working webhooks demo service right from the webhooks setup.
On Github you may find example of implementation.0 -
Great thanks @JohnTube this looks like exactly what I need. my only problem is I can't seem to get it working with the little I've played around with it. I wasn't sure if I needed to have photon Classic downloaded as well? but it was saying I had a lot of duplicate scripts so I didn't import it but keeps sending the error "Assets\photon-unity3d-sdk_v4-1-1-21\demo-turnbased-memory\Assets\PhotonLoadbalancingApi\LoadBalancingClient.cs(1657,58): error CS1503: Argument 1: cannot convert from 'ExitGames.Client.Photon.Hashtable' to 'System.Collections.Hashtable'"0
-
Hi @EHoops,
Photon Realtime Unity SDK should not be mixed with PUN1.
I think you can use Photon Realtime Unity SDK only OR (better) port Memory Demo to PUN2!
You can do so easily, just use Memory Demo in a separate project to understand it then add your logic using PUN2. PUN2 includes a better newer version unreleased of Photon Realtime, since PUN2 is built on top of Photon Realtime.
The main things you need: RaiseEvent, SetProperties, webhooks, webflags and webRPCs.5 -
Awesome thanks! I've gotten it working now so all I'll need to do is mess around with it and port it to PUN 2!0