Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

Use different sprites in new Unity UI for SD vs HD

$
0
0
Hi all, We are looking at the new Unity UI coming from using NGUI. Looking at the documentation for the [Canvas Scaler][1] and [Designing UI for Multiple resolutions][2], I understand how to set the layout for my UI components and how to get them to scale properly. One thing I am unclear on however is the ability to specify a different set of images depending on the resolution (SD vs HD), similar to what NGUI provides with Reference Atlases. We want to load different sprites (or sprite atlases) depending on the supported resolution for the device. Two reasons: (1) on higher resolution devices we want pixel perfect images (larger images) but (2) on lower resolution devices we want to use as little memory as possible (since lower res devices tend to also be lower RAM) ![alt text][3] It seems the Canvas Scaler only allow us to either (a) provide large textures scaled down for lower resolution devices (correct visuals but larger memory footprint) or (b) provide small textures scaled up on higher resolution devices (lower memory footprint but scaling artifacts) I haven't seen any documentation that addresses this topic specifically. Is there a way to do this? Thanks. Stephane [1]: http://docs.unity3d.com/Manual/script-CanvasScaler.html [2]: http://docs.unity3d.com/Manual/HOWTO-UIMultiResolution.html [3]: /storage/temp/41936-sd-vs-hd.png

Viewing all articles
Browse latest Browse all 4709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>