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
I created 2 Global Variables (AManager and DManager) inside AutoLoad in the Project Settings and ENABLED the Global Variable checkbox (which was enabled by default.) But in any of my scripts attached to child Nodes of the Node attached to the Script containing the Global Variable Script, Visual Studio Code is highlighting either AManager or DManager references and saying the name doesn't exist in the current context.
Steps to reproduce
Just open the Script files in Visual Studio Code and you'll see the Global Variables are marked as errors and they shouldn't be.
Your MRP is missing the project.godot file, but setting the autoloads like the documentation shows should instantiate them.
What makes you think that DManager is not being instantiated? What does the Scene Tree contain when running the game? You can check using the Remote tab:
Okay this is the updated Project for this and everything works.
You are supposed to hit the REMOTE button during run-time to verify that DManager is created Globally.
I didn't know that. https://github.com/edwit1971/AutoLoad
Godot version
v4.1.1.stable.mono.official [bd6af8e]
System information
Windows 11 Pro
Issue description
I created 2 Global Variables (AManager and DManager) inside AutoLoad in the Project Settings and ENABLED the Global Variable checkbox (which was enabled by default.) But in any of my scripts attached to child Nodes of the Node attached to the Script containing the Global Variable Script, Visual Studio Code is highlighting either AManager or DManager references and saying the name doesn't exist in the current context.
Steps to reproduce
Just open the Script files in Visual Studio Code and you'll see the Global Variables are marked as errors and they shouldn't be.
Minimal reproduction project
AutoLoad_Error.zip
The text was updated successfully, but these errors were encountered: