Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unity 6 error: "ScriptableSingleton already exists. Did you query the singleton in a constructor?" #55

Open
hsandt opened this issue Oct 2, 2024 · 0 comments

Comments

@hsandt
Copy link

hsandt commented Oct 2, 2024

On engine start or after recompile in Unity 6000.0.12f1, I get an error in console log:

ScriptableSingleton already exists. Did you query the singleton in a constructor?
UnityEditor.ScriptableSingleton`1<Gemserk.FavoritesAsset>:.ctor ()
Gemserk.FavoritesAsset:.ctor () (at ./Library/PackageCache/com.gemserk.selectionhistory/Editor/FavoritesAsset.cs:22)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /home/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:219)

This seems to break Selection History features: I tried to Go Back/Forward but then I got error:

NullReferenceException: Object reference not set to an instance of an object
Gemserk.SelectionHistory.GetSelection () (at ./Library/PackageCache/com.gemserk.selectionhistory/SelectionHistory.cs:207)
Gemserk.SelectionHistoryWindowUtils.PreviousSelection () (at ./Library/PackageCache/com.gemserk.selectionhistory/Editor/SelectionHistoryWindowUtils.cs:76)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant