[Question] How to get photon scripts to recognize my class.
I would like to add something like
(&& LevelManager.IsTesting)
at the if (netView != listedView)
place. But LevelManager doesnt seems to be recognize. Any help would be appreciated.
bool isViewListed = photonViewList.TryGetValue(netView.ViewID, out listedView); if (isViewListed) { // if some other view is in the list already, we got a problem. it might be undestructible. print out error if (netView != listedView) { Debug.LogError(string.Format("PhotonView ID duplicate found: {0}. New: {1} old: {2}. Maybe one wasn't destroyed on scene load?! Check for 'DontDestroyOnLoad'. Destroying old entry, adding new.", netView.ViewID, netView, listedView)); } else { return; } RemoveInstantiatedGO(listedView.gameObject, true); }
0
Comments
-
PhotonNetwork is in its own assembly. You'll need to create your own asmdef file and reference it via PhotonUnityNetworking.asmdef file. You can read more about assembly definitions here: https://docs.unity3d.com/Manual/ScriptCompilationAssemblyDefinitionFiles.html2
-
I see.. i think i know how to do it... but it will just be a pain to get it setup. Thanks anywaysTheSLAP said:PhotonNetwork is in its own assembly. You'll need to create your own asmdef file and reference it via PhotonUnityNetworking.asmdef file. You can read more about assembly definitions here: https://docs.unity3d.com/Manual/ScriptCompilationAssemblyDefinitionFiles.html
0