How to use Scale.getScaledResource ?

8 views
Skip to first unread message

guille.r...@gmail.com

unread,
Apr 20, 2018, 6:26:43 AM4/20/18
to PlayN
Hello,

Does anyone have an example on how Scale.getScaledResource is intended to be used?

According to the documentation (and code) this "returns an ordered series of scaled resources to try when loading an asset". However since there is no API to check if an asset exists for a given path, how should this be used?

Thanks,

Guillermo

guille.r...@gmail.com

unread,
Apr 23, 2018, 4:23:20 AM4/23/18
to PlayN
Hi all,

Nevermind. I just noticed that Scale.getScaledResource is used internally by the Assets implementation in each platform; it is not something that the application needs to use directly.

Guillermo
Reply all
Reply to author
Forward
0 new messages