Unity 5.4 NetworkManager `This function is not used any longer"
I would ask about how to change my networkmanager script if I get this error : "error CS0619: UnityEngine.Networking.Match.NetworkMatch.SetProgramAppID(UnityEngine.Networking.Types.AppID)' is obsolete:
This function is not used any longer to interface with the matchmaker. Please set up your project by logging in through the editor connect dialog."
it says something wrong in my script in these lines :
void Update()
{
if (networkMatch == null)
{
var nm = GetComponent<NetworkMatch>();
if (nm != null)
{
networkMatch = nm as NetworkMatch;
UnityEngine.Networking.Types.AppID appid = (UnityEngine.Networking.Types.AppID)******;
networkMatch.SetProgramAppID(appid); // here it is something wrong with 5.4
}
}
}
Any idea what has been changed ? Thank you CHeers :)
Answer by fredfishgames · Jul 28, 2016 at 09:26 PM
Ah I think you need to go to the services window, which can be accessed by going to the window menu and clicking on services. Then you should be able to link your appid to your game so that matchmaking works. You don't link the appid through code anymore.
I hope that helps.
Edit: You also you need to make sure you're logged in on the starting/project select page.