Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

Generic subclass issues with PunRPC attribute.

$
0
0
We have a class Trigger where have a PunRPC method OnTriggeredRPC. The strange issue is, that Photon will report that "OnTriggeredRPC" does not exist, yet we receive that method's callback. So I believe there may be an internal caching issue related to generics.

We may have a class such as DeathTrigger : Trigger. We use the generic T internally to create a static list of instances for enumerating.

This issue is not a game killer, however it causes annoyances every time the method is called resulting in Debug.LogError to occur. Can anyone shed light on a simple fix?

Thanks for your time.

Viewing all articles
Browse latest Browse all 15755

Trending Articles