|
Hi, I'm new to Unity. Just read the reference of Resources.FindObjectsOfTypeAll and tested an empty project with following code: } And I'm pretty surprised it showed 841 textures, 42 meshes (the number changed overtime), 17 materials and 7 game objects already loaded, even there was an MainCamera object visible from the Hierarchy view. Who does know what these resources are and for? Thanks in advance! Jinni
(comments are locked)
|
|
This may be resource Unity uses for Editor. Try to set up new project and measure again. Or print their names. Thanks Cupsster. The info was printed from a purely new created project. I think you're probably right. They should be built-in resources used by Editor.
Feb 15 '12 at 01:08 PM
jinni_cao
Just read the description of Resources.FindObjectsOfTypeAll
Keep in mind it says "loaded", so there are some objects that might not been loaded yet but are loaded when they are requested. Also don't forget almost the whole Unity editor is made up of Unity's GUI which needs a lot textures for all the buttons / windows / icons you see.
Feb 15 '12 at 01:12 PM
Bunny83
Glad you figured it out.
Feb 15 '12 at 01:19 PM
cupsster
(comments are locked)
|
