Hello everybody I just made a little test about PREFABS. A test about optimisation in the gameplay…
What I made : I took a palm object i made it ‘‘loosing prefab’’. Then I duplicated that palm 3000 time. In my hierarchy window, all palm are written in BLACK. After taking a snapshoot of the STATSTICS, I made the same thing but all palm in prefab. (Hierarchy window, all palm are written in BLUE) After I took a snapshoot, I compared my 2 snapshoots of the statistics and no difference at all.
I know that the prefab function is : if you modified the prefab all objects used by that prefab will take changes (instance objects). (I SPEAK FRENCH )
The prefab system is mainly an advantage in constructing the scene. If you change the prefab, all linked instances of it will be changed as well. Otherwise, instances are just normal objects as far as Unity is concerned.
Well i though that Unity calculate the object prefab one time only and if you duplicate it, memory use could be less important than using normal objects (not a prefab)
HI can u please make it clear, bcos i have a doubt about using PREFAB, if we use prefab which is generated in runtime and later destroy it, will the memory be cashed or fully released, which the system uses for creating and working with the prefab. I just wanna use around a 100 images in a prefab and generate it runtime, later after the use its being destroyed. My doubt is will the memory be released which was being used for those images and prefabs.