You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This isn't a massive issue, but caused a few hours of confusion for me.
I have an autoload singleton named "Network", and I'm accessing it in my player script. After organizing my code a bit with @export_category, I created a category named "Network", and was getting "Invalid get index 'blah' (on base: 'Nil')."
It seems that creating an export category creates some sort of nil variable that conflicts with singletons (or maybe existing variables in general).
Steps to reproduce
Create an autoload singleton
On any scene, create a script
In that script, create an export category with the same title as the singleton name
Attempt to access the singleton
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered:
Godot version
v4.1.1.stable.official [bd6af8e]
System information
Godot v4.1.1.stable - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 Ti (NVIDIA; 31.0.15.3713) - AMD Ryzen 7 3700X 8-Core Processor (16 Threads)
Issue description
This isn't a massive issue, but caused a few hours of confusion for me.
I have an autoload singleton named "Network", and I'm accessing it in my player script. After organizing my code a bit with @export_category, I created a category named "Network", and was getting "Invalid get index 'blah' (on base: 'Nil')."
It seems that creating an export category creates some sort of nil variable that conflicts with singletons (or maybe existing variables in general).
Steps to reproduce
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: