User avatar
Scherub
Topic Author
Posts: 141
Joined: 06 May 2014, 20:53
Contact:

[Unity] Performance of lots of images

08 May 2014, 00:24

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?
 
User avatar
jsantos
Site Admin
Posts: 2904
Joined: 20 Jan 2012, 17:18
Contact:

Re: [Unity] Performance of lots of images

08 May 2014, 11:05

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.
 
User avatar
Scherub
Topic Author
Posts: 141
Joined: 06 May 2014, 20:53
Contact:

Re: [Unity] Performance of lots of images

11 May 2014, 18:27

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: No registered users and 0 guests