How to programmatically selecting atlas / texture?

#1

Hi.

I read in post What is a proper way to handle textures on universal app for high and low res devices that Defold didn’t have a way to let us select atlas/texture based on retina / low resolution. (according to @sicher).

This post is quite old (it is almost 4 years old). Does Defold has this mechanisms nowadays?

There is no way to programmatically change them?

Thank you.

2 Likes

#2

Defold implemented Resource Properties a while back, which allow you to set an atlas on an image at runtime.

2 Likes

#3

Thank you for replying and pointing me these documents.

I’ll read them carefully.

Regards.

0 Likes