- Home /
How do I remove a plugin from a Unity project?
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()
Answer by tobiass · May 09, 2014 at 03:47 PM
PUN should be in the folder "Photon Unity Networking". If not, you can find it's pieces in Assets*\Editor\PhotonNetwork*. and Assets*\Plugins\PhotonNetwork*..
Create a new, empty scene. Delete the PhotonNetwork folder first from Editor-, then from Plugins-Folder.
Delete Assets\Plugins*photon*.* (including subfolders).
You might also find a "Demos" folder with a "DemoBoxes" subfolder. Delete everything in that Demos folder.
Delete any remaining PhotonServerSetting.asset file.
Mark this as answer. Done. ;)
I doubt it. It seems pretty unlikely that Facebook SD$$anonymous$$ would install in a folder called "Photon Unity Networking" or make use of a PhotonServerSetting.asset file, no?
Your answer
![](https://koobas.hobune.stream/wayback/20220613144146im_/https://answers.unity.com/themes/thub/images/avi.jpg)