GameManager without Scripting?

From what I know about Unity and it’s ability to communicate GameObjects and information between Scenes, is that it needs to be scripted and utilize a custom script “StateManager” that controllers what scene is loaded and what information is remembered.

Is there a UI solution to this inside Unity or a more intuitive method? I feel quite a bit of coding is needed to create something that appears to be very common in almost every game.

Thanks

Not that I’m aware off, but it requires very little code to make a gamamanger object to store information between scene changes

The general idea of one is common in almost every game. But the implementation of it can vary so much that a unity baked in UI version of it wouldn’t be able to do everything necessary.

I bet there are some 3rd party ones floating about.

I probably would never touch one.

I also wouldn’t really call something that you don’t use code for ‘intuitive’ just because you don’t have to code… but that’s just me.

I guess I’m finding it a bit overwhelming from this book I’m reading - “Learning C# by Developing Games with Unity 3DTerry Norton”. Some parts get a bit confusing when entering the chapters involving creating the StateManager. Guess I’ll have to keep practicing or find additional resources on it.

Use play maker. I’ve never touched it, but it’s pretty much standard for visual scripting in unity.

Managers are pretty dependent on the type of game, etc. I thought the same thing when I started scripting Unity, but now I realize how it would just mostly get in the way. They have a DontDestroyOnLoad function which is really all that’s necessary so the manager can go between scenes. Playmaker is a great tool if you don’t want to script, but is a bit limited when you start doing complex management tasks.

Fire7Side,

I guess I just need to study more on Managers and how to properly use them. Any reference source you recommend or that you’ve used when you were learning?

Really isn’t much to read up on, if it has DontDestroyOnLoad the game object will survive scene changes and you can store all the data you need between scenes on it.

Other things to look into could be using a singalton as a game manager and looking into how to save data to disk for save games

1 Like

Use the learn tutorials, the forums, MSDN and above all else google.

Define the task you want to do, in plain English, then search for it. Just about everything has been done before, and posted on the internet. If you really get stuck on what search terms to use then ask a question.