Getting this error when trying to use Photon PUN 2 - Free:
The type or namespace name ‘Pun’ does not exist in the namespace ‘Photon’
Here’s the code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Photon.Pun;
public class NetworkController : MonoBehaviourPunCallbacks
{
void Start ()
{
PhotonNetwork.ConnectUsingSettings();
}
public override void OnConnectedToMaster ()
{
Debug.Log("connected to "+PhotonNetwork.CloudRegion+" server");
}
}
I tried this, It kinda worked and Photon can be detected on VS but it affects the intellisense. Best option is the top voted one
– Mccorkle