Bug Reporting > PlayMaker Bug Reporting
Observed scripts have to implement IPunObservable. [Solved]
jrDev:
Hello,
So in addition to the error I have with PhotoPlaymakerProxy in the other thread, whenever another client joins a room I get this error:
Observed scripts have to implement IPunObservable. PlayMaker Photon Proxy (HutongGames.PlayMaker.Pun2.PlayMakerPhotonProxy) does not. It is Type: HutongGames.PlayMaker.Pun2.PlayMakerPhotonProxy
UnityEngine.Debug:LogError(Object, Object)
Photon.Pun.PhotonView:SerializeComponent(Component, PhotonStream, PhotonMessageInfo) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonView.cs:368)
Photon.Pun.PhotonView:SerializeView(PhotonStream, PhotonMessageInfo) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonView.cs:330)
Photon.Pun.PhotonNetwork:OnSerializeWrite(PhotonView) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs:1520)
Photon.Pun.PhotonNetwork:RunViewUpdate() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs:1449)
Photon.Pun.PhotonHandler:LateUpdate() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:143)
So why doesn't the PlaymakerProxy not have the IObservable? Need help please @jeanfabre
Thanks,
jrDev
jeanfabre:
Hi,
Have you tried to manually observed this proxy? you don't need to, it's only here to catch rpcs and synchronize fsm variables. The proxy sits there and should be forgotten about. Usually these components are hidden, but I am against this practice because it can be very confusing, but I also understand that it can be confusing this way too...
Bye,
Jean
jrDev:
--- Quote from: jeanfabre on August 22, 2019, 01:22:41 AM ---Hi,
Have you tried to manually observed this proxy? you don't need to, it's only here to catch rpcs and synchronize fsm variables. The proxy sits there and should be forgotten about. Usually these components are hidden, but I am against this practice because it can be very confusing, but I also understand that it can be confusing this way too...
Bye,
Jean
--- End quote ---
I don't know what you mean by manually. All I did was add the PlaymakerPhotonProxy prefab to the scene. I didn't touch anything on that prefab afterwards. See pic attached.
jrDev:
So I figured this out with Jean’s help in the post above and the Photon forum!
As you can currently see in the pic above that the Playmaker Photon Proxy prefab is observing itself. Apparently it is automatically set like this when downloaded. This needs to be fixed in the official PUN2 actions on the Ecosystem browser.
Hopefully this helps anyone that currently downloads and have this issue until it’s officially fixed...
Thanks,
jrDev
Javelin_IA:
Hi,
@jrDev what exactly is the solution for that? I'm struggling with this error too but I don't know what to set in the Photon Proxy Prefab...
Navigation
[0] Message Index
[#] Next page
Go to full version