yasirkula / UnityIngameDebugConsole

A uGUI based console to see debug messages and execute commands during gameplay in Unity
MIT License
2.18k stars 225 forks source link

When saving a Unity project, it randomly tries to save the IngameDeugConsole.prefab #82

Open AndrewKahr opened 1 year ago

AndrewKahr commented 1 year ago

Description of the bug

When I use ctrl-s to save my Unity project, it will on occasion spit out the following error

Saving Prefab to immutable folder is not allowed: Packages/com.yasirkula.ingamedebugconsole/Plugins/IngameDebugConsole/IngameDebugConsole.prefab
UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()

Reproduction steps

Unsure what exactly triggers it, but it seems to be after exiting playmode, editing some files, then resaving that it triggers the error

Platform specs

Please provide the following info if this is a Unity 3D repository.

yasirkula commented 1 year ago

I'd guess some sort of auto-prefab-upgrader of Unity is trying to upgrade the IngameDebugConsole prefab. I'd recommend importing the plugin as a normal asset or moving Library/PackageCache/IngameDebugConsole to Packages/IngameDebugConsole.