RaiseEvent and PUN 2.11
Options
Hi,
After updating to 2.11 I have following errors:
error CS0030: Cannot convert type 'method' to 'object[]'
object[] data = (object[])photonEvent.CustomData;
How to fix this properly?
The documentation page is not up-to-date:
https://doc.photonengine.com/en-us/pun/v2/gameplay/rpcsandraiseevent
After updating to 2.11 I have following errors:
error CS0030: Cannot convert type 'method' to 'object[]'
object[] data = (object[])photonEvent.CustomData;
How to fix this properly?
The documentation page is not up-to-date:
https://doc.photonengine.com/en-us/pun/v2/gameplay/rpcsandraiseevent
0
Comments
-
Found out that the data is in the Parameters now. This works for me:
object[] data = (object[])photonEvent.Parameters.First().Value;0 -
Hi @Rohirm,
Thank you for choosing Photon!
There was an issue related to this in PUN2.11 we just submitted 2.12 to the Asset Store and it should be available within a few hours.
Meanwhile, you could try a better workaround by replacingphotonEvent.CustomData
withphotonEvent.CustomData()
Sorry for the inconvenience.0