• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Jul 18, 2017 at 09:51 PM by Bunny83 for the following reason:

Too subjective and argumentative. The question asks an opinion based question which don't belong here on UA. Such questions / discussions should be asked on the forums. See the FAQ: http://answers.unity3d.com/page/faq.html

avatar image
0
Question by Mouton · Jul 18, 2017 at 06:56 PM · genericnaming

What name for a "Global" object ?

I have a global object let's call him "Global", it is created once and set as persistent through all the scenes with DontDestroyOnLoad(transform.gameObject); in it's Start method.

it holds an API and an Audio Source for now but may hold more things in the future.

I am satisfied with this implementation, yet I am not satisfied of the name I use ("Persistent Data"), I don't like either "Global".

Is there a generic name I am not aware of for this kind of object ? What do you suggest me ?

Thank you.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

  • Sort: 
avatar image
2
Best Answer

Answer by tanoshimi · Jul 18, 2017 at 07:03 PM

It's your code, you can call it anything you want.... but I've frequently seen "GameManager" used (or, more specific "AudioManager" etc.), "Main" occasionally, and "God" once.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Mouton · Jul 18, 2017 at 09:02 PM 0
Share

"Game $$anonymous$$anager" sounds good. Thank you. ;)

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

67 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Naming array elements 1 Answer

Why is "CON.asset" or "CON.txt" not a valid filename? 1 Answer

get component type at runtime using generic GetComponent in C# 1 Answer

null reference exception problem with generic lists in unityscript (i think...) 1 Answer

Humanoid vs Generic: Animation files 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges