EventCaching' does not exist in the current context

Options
public void SendTurnNumber(int num)
{
Debug.Log ("Send Turn Number");
Hashtable content = new Hashtable();
content[(byte)50]=num;
this.loadBalancingPeer.OpRaiseEvent(EvSendTurnNumber, content, true, new RaiseEventOptions() { CachingOption = EventCaching.AddToRoomCache });
}

it shows error The name `EventCaching' does not exist in the current context
What is the reason for this error

Answers

  • vadim
    Options
    Please try ExitGames.Client.Photon.LoadBalancing.EventCaching
  • lino
    Options
    When i tried that it shows error Cannot implicitly convert type `ExitGames.Client.Photon.LoadBalancing.EventCaching' to `ExitGames.Client.Photon.EventCaching'. An explicit conversion exists (are you missing a cast?)
  • Dev
    Options
    There seems to be ambiguity between the hashtable 'content' and when you call loadbalancing.eventcaching. Make sure content is of the proper namespace.