Hello. In VS(not code), when i refer to a class located in a folder, its full path with the folder is required For example, using ProjectNameSpace._Manager.GameManager. How do you make sure you don't use these paths?
Hello, great question! It is thanks to this file: github.com/LubiiiCZ/DevQuickie/blob/ff7534c803a6417bf592f72915fdb19ce1619b01/Quickie023-SceneManagement/Usings.cs Plus: I am using a single namespace within the example project
@@GameDevQuickie yes, i use this file too but besides these lines { global using System; global using Microsoft.Xna.Framework; global using Microsoft.Xna.Framework.Graphics; global using Microsoft.Xna.Framework.Input; } I also need to add these lines { global using ProjectNameSpace._Manager.GameManager global using ProjectNameSpace._Manager.InputManager global using ProjectNameSpace._Models.Character } and so on without this line, I need to put these texts every file to refer my GameManager and also i use single namespace in other words, my classes cannot find other classes if they are in folders
@@GameDevQuickie Thanks to you, I tried to figure out what was wrong. It turns out that when I dragged the class into a folder, the class asked me whether to change its own namespace by adding the name of the folder to the namespace. Without reading, I clicked "Yes" everywhere (as I think most of us click "Next", "Next" when receiving notifications) Because of this, I got different namespaces, although they had parental roots. Problem solved
Finally, new video! Thank you!
Yes, finally!
Hello. In VS(not code), when i refer to a class located in a folder, its full path with the folder is required
For example, using ProjectNameSpace._Manager.GameManager.
How do you make sure you don't use these paths?
Hello, great question! It is thanks to this file: github.com/LubiiiCZ/DevQuickie/blob/ff7534c803a6417bf592f72915fdb19ce1619b01/Quickie023-SceneManagement/Usings.cs
Plus: I am using a single namespace within the example project
@@GameDevQuickie yes, i use this file too
but besides these lines
{
global using System;
global using Microsoft.Xna.Framework;
global using Microsoft.Xna.Framework.Graphics;
global using Microsoft.Xna.Framework.Input;
}
I also need to add these lines
{
global using ProjectNameSpace._Manager.GameManager
global using ProjectNameSpace._Manager.InputManager
global using ProjectNameSpace._Models.Character
}
and so on
without this line, I need to put these texts every file to refer my GameManager
and also i use single namespace
in other words, my classes cannot find other classes if they are in folders
@@que910 are you sure your classes are in the same namespace? It doesn't seem so from the above. I would have to see the project I guess.
@@GameDevQuickie Thanks to you, I tried to figure out what was wrong.
It turns out that when I dragged the class into a folder, the class asked me whether to change its own namespace by adding the name of the folder to the namespace.
Without reading, I clicked "Yes" everywhere (as I think most of us click "Next", "Next" when receiving notifications)
Because of this, I got different namespaces, although they had parental roots. Problem solved
Can you make a video on scene management within your top down shooter project? Thanks
Hey, it is pretty straightforward. Just take the things from the scene management episode. Are there any blockers?