Why is it necessary for all game objects to have a Transform component?
Suppose I want an object that I don’t want to be a component, say some kind of manager that does nothing on the screen, nor modify any object in any scene. For example I want to code a manager that just keeps track of maps that the player has downloaded and installed in the game. There are two possible ways to go that I know of:
-
I can either leave the manager script unattached and call its routines from other script components that are ultimately attached to GameObject instances which have transform components. Or…
-
I can create and empty GameObject and attach my script as a component. But that GameObject that anchors my script has a useless Transform component.
Is there such a thing as a root game object for this purpose?