- Home /
Intangible Game Components
In my game my units belong to teams, but I'm not exactly sure how to manage these teams from a coding/GameObject/Inspector/Scene perspective. A Team is not a "thing". It doesn't have a position or a material. It is an abstract associative concept.
BUT I'd like to set up the Teams via the Scene/Hierarchy. So do I just make some invisible empty GameObject and attach my Team script to that?
Sorry if this is a silly question, but it caused me to have an existential breakdown.
Answer by flaviusxvii · Jun 20, 2011 at 04:41 PM
It turns out this is exactly what I was looking for.
http://unity3d.com/support/documentation/ScriptReference/ScriptableObject.html
Answer by Retribution · Jun 07, 2011 at 08:18 PM
This is a perfectly legitimate way to handle it, I do this with objects that are not actual 'objects' either (sending info to servers, facebook/twitter stuff, etc). I usually have my manager-type scripts that control game flow and other things that aren't tangible objects on blank gameObjects.
Your answer