I keep getting this error: Assets/Photon/PhotonRealtime/Code/Room.cs(309,42): error CS0115: `Photon.Realtime.Room.InternalCacheProperties()' is marked as an override but no suitable method found to override
Here is my code:
override protected internal void InternalCacheProperties() { int oldMasterId = this.masterClientId;
base.InternalCacheProperties(propertiesToCache); // important: updating the properties fields has no way to do callbacks on change
if (oldMasterId != 0 && this.masterClientId != oldMasterId)
{
this.LoadBalancingClient.InRoomCallbackTargets.OnMasterClientSwitched(this.GetPlayer(this.masterClientId));
}
}
Hi,
please make sure that the PUN 2 package is imported correctly. The Room class extends the RoomInfo class which contains the virtual InternalCacheProperties
function. Please make sure that this class is present in the project. Also if you have applied any modifications to one or both of these classes, please revert them.
I just reimported the Photon PUN 2+ kit and I'm not getting any errors what so ever. This helped a lot. Thank you so much!
Your answer
Follow this Question
Related Questions
Syncing live animations using PUN 2 Answers
Sync the Dani Grappling Hook 0 Answers
Player names with photon PUN 1 Answer
PhotonUnity player move object problem ! 1 Answer
Randomize a value through Photon 0 Answers