How do I remove a plugin from a Unity project?
Asked Answered
A

2

0

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()
Asp answered 7/2 at 19:18 Comment(0)
G
0
  • 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.
:wink:

Gourde answered 7/2 at 19:20 Comment(2)

Is process same for facebook sdk unload ?

Headgear

I 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
S
0

Im a bit new to using unity, how do I delete PhotonNetwork folder from editor then also, how do i acess and delete it from plugins folder plugins folder, I know it sounds obvious and I’m probably stupid for this but I just need a little help so I dont mess up my project for the 9th time

Soredium answered 7/2 at 19:15 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.