Question by
MeoDeo · Jul 27, 2019 at 11:17 AM ·
performanceimageui imageprefab-instance
Collecting groups of images in scene
Hello.
I wonder how to properly instantinate images on canvas. I've created some icons depicting current buffs stacked on player's units. Now I wonder how to import them with a maximum performance. Becouse there may be about 15 pics of different buffs every scene and only solution that I have is to create prefab for each image but it seems to be bad idea. So, what are you doing with big groups of icons that may occur in scene? Do you create objects of the RectTransform type in the code, whether you have prepared prefabricates? Does referece to array allocates memory or it uses already allocated oryginal memory space? I need to know because I'm thinking about creating one general object that collects all image prefabs.
Comment