[Unity] Performance of lots of images
Hello.
Can anyone tell me how well a fairly large amount of icons/images performs within one xaml? I think I read somewhere that all images are built directly into the binary blob that is created out of a xaml. So I would also like to know whether there are any restrictions?
Another question is whether it's possible to dynamically load and display icons/images?
Can anyone tell me how well a fairly large amount of icons/images performs within one xaml? I think I read somewhere that all images are built directly into the binary blob that is created out of a xaml. So I would also like to know whether there are any restrictions?
Another question is whether it's possible to dynamically load and display icons/images?
Re: [Unity] Performance of lots of images
Hi,
Yes, at build time all the images being used by a XAML are converted to textures and included inside the binary blob that is loaded at runtime. This may change in the future, but anyway it can be considered an internal detail. You shouldn't find any trouble by using large amount of images in one xaml. Although it is recommended that you group all them in a single atlas texture as described in the Images Tutorial.
At the end of that same tutorial (under the section Generating Images at Runtime) you will find how to dynamically use Unity Textures.
Yes, at build time all the images being used by a XAML are converted to textures and included inside the binary blob that is loaded at runtime. This may change in the future, but anyway it can be considered an internal detail. You shouldn't find any trouble by using large amount of images in one xaml. Although it is recommended that you group all them in a single atlas texture as described in the Images Tutorial.
At the end of that same tutorial (under the section Generating Images at Runtime) you will find how to dynamically use Unity Textures.
Re: [Unity] Performance of lots of images
Ah, thanks for your answer. The last part of the tutorial you mentioned was very helpful. So thanks again.
Who is online
Users browsing this forum: Ahrefs [Bot], tuwi and 44 guests