InvalidCastException When Using Universal Render Pipeline
Options
Everything works fine; however I get this error from Photon ONLY when using URP in my project settings:
Anyone got any idea why that is?
InvalidCastException: Specified cast is not valid. Photon.Pun.PhotonNetwork.AlmostEquals (System.Object one, System.Object two) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs:2008) Photon.Pun.PhotonNetwork.DeltaCompressionWrite (System.Collections.Generic.List`1[T] previousContent, System.Collections.Generic.List`1[T] currentContent) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs:1856) Photon.Pun.PhotonNetwork.OnSerializeWrite (Photon.Pun.PhotonView view) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs:1736) Photon.Pun.PhotonNetwork.RunViewUpdate () (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs:1611) Photon.Pun.PhotonHandler.LateUpdate () (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:173)
Anyone got any idea why that is?
0
Comments
-
Bump.
So, doing a lot of digging, I still can't get Photon to work with URP. Any help anyone?0 -
what was the object transmitting through OnSerializeWrite / OnSerializeRead?
guessing the object is not serializable by Photon0