- Home /
Profiler: GameObjects in Scene count?
I don't understand the
GameObjects in Scene:
count in the Memory section of the Profiler.
If I create an empty scene with only a MainCamera, it reports 6 GameObjects in Scene. In more complex scenes, the discrepancy between what's in my Hierarchy view and this readout is even higher.
Any insight would be much appreciated.
Thanks in advance!
Thats what I was thinking. all the components to the camera.
$$anonymous$$aybe it's counting all Object
s and not only GameObject
s.
Answer by Lo0NuhtiK · Apr 30, 2012 at 05:44 AM
Don't know, never used it... but maybe it count's every component of the game object, including game object since you say it count's six for a camera and a basic camera would have
1)Game Object
2)Transform
3)Camera
4)GUILayer
5)Flare Layer
6)Audio Listener
for it's components... remove a couple of the components and see if the count changes.
Edit: Profiler window must be a pro-unity-only thing I guess (if that's what you're talking about) ; I can't use it on my freebie version.
Your answer

Follow this Question
Related Questions
Convert code to get prefab then sprite ? 0 Answers
Using variables from other script and converting them to another variable 2 Answers
FPS Kit V2.0 & Uspeak 1 Answer
unity profiler total object count regarding renderer material memory leak 3 Answers
using Contains(gameObject) to find and destroy a gameObject from a list 2 Answers