I inherited a Unity project that uses a lot of extraneous tools, and they are getting in the way of me doing my part. In particular, this project has Photon Unity Networking attached to it, but it’s not necessary for the animation I’m creating.
I removed all files related to Photon Unity Networking from the asset browser, but I now getting the following errors and can’t play my scene. Keep in mind that the files in which the errors appear are actually no longer existent in the project:
Instance of ServerSettings couldn't be created because there is no script with that name.
UnityEngine.ScriptableObject:CreateInstance(String)
PhotonEditor:get_Current() (at Assets/Game/Tools/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs:812)
PhotonEditor:EditorUpdate() (at Assets/Game/Tools/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs:316)
UnityEditor.DockArea:OnGUI()
Photon Unity Networking (PUN) is missing the 'ServerSettings' script. Re-import PUN to fix this.
UnityEngine.Debug:LogError(Object)
PhotonEditor:get_Current() (at Assets/Game/Tools/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs:815)
PhotonEditor:EditorUpdate() (at Assets/Game/Tools/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs:316)
UnityEditor.DockArea:OnGUI()
Instance of ServerSettings couldn't be created because there is no script with that name.
UnityEngine.ScriptableObject:CreateInstance(String)
PhotonEditor:get_Current() (at Assets/Game/Tools/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs:812)
PhotonEditor:PlaymodeStateChanged() (at Assets/Game/Tools/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs:352)
UnityEditor.Toolbar:OnGUI()
Photon Unity Networking (PUN) is missing the 'ServerSettings' script. Re-import PUN to fix this.
UnityEngine.Debug:LogError(Object)
PhotonEditor:get_Current() (at Assets/Game/Tools/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs:815)
PhotonEditor:PlaymodeStateChanged() (at Assets/Game/Tools/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs:352)
UnityEditor.Toolbar:OnGUI()
NullReferenceException: Object reference not set to an instance of an object
PhotonEditor.PlaymodeStateChanged () (at Assets/Game/Tools/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs:352)
UnityEditor.EditorApplication.Internal_PlaymodeStateChanged () (at C:/BuildAgent/work/d3d49558e4d408f4/artifacts/EditorGenerated/EditorApplication.cs:286)
UnityEditor.Toolbar:OnGUI()
Instance of ServerSettings couldn't be created because there is no script with that name.
UnityEngine.ScriptableObject:CreateInstance(String)
PhotonEditor:get_Current() (at Assets/Game/Tools/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs:812)
PhotonEditor:EditorUpdate() (at Assets/Game/Tools/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs:316)
UnityEditor.DockArea:OnGUI()
Photon Unity Networking (PUN) is missing the 'ServerSettings' script. Re-import PUN to fix this.
UnityEngine.Debug:LogError(Object)
PhotonEditor:get_Current() (at Assets/Game/Tools/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs:815)
PhotonEditor:EditorUpdate() (at Assets/Game/Tools/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs:316)
UnityEditor.DockArea:OnGUI()
Instance of ServerSettings couldn't be created because there is no script with that name.
UnityEngine.ScriptableObject:CreateInstance(String)
PhotonEditor:get_Current() (at Assets/Game/Tools/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs:812)
PhotonEditor:PlaymodeStateChanged() (at Assets/Game/Tools/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs:352)
UnityEditor.Toolbar:OnGUI()
Photon Unity Networking (PUN) is missing the 'ServerSettings' script. Re-import PUN to fix this.
UnityEngine.Debug:LogError(Object)
PhotonEditor:get_Current() (at Assets/Game/Tools/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs:815)
PhotonEditor:PlaymodeStateChanged() (at Assets/Game/Tools/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs:352)
UnityEditor.Toolbar:OnGUI()
NullReferenceException: Object reference not set to an instance of an object
PhotonEditor.PlaymodeStateChanged () (at Assets/Game/Tools/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs:352)
UnityEditor.EditorApplication.Internal_PlaymodeStateChanged () (at C:/BuildAgent/work/d3d49558e4d408f4/artifacts/EditorGenerated/EditorApplication.cs:286)
UnityEditor.Toolbar:OnGUI()
Instance of ServerSettings couldn't be created because there is no script with that name.
UnityEngine.ScriptableObject:CreateInstance(String)
PhotonEditor:get_Current() (at Assets/Game/Tools/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs:812)
PhotonEditor:EditorUpdate() (at Assets/Game/Tools/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs:316)
UnityEditor.DockArea:OnGUI()
Is process same for facebook sdk unload ?
– HeadgearI doubt it. It seems pretty unlikely that Facebook SDK would install in a folder called "Photon Unity Networking" or make use of a PhotonServerSetting.asset file, no?
– Escargot