Skip to content
InvexGames edited this page Feb 15, 2015 · 5 revisions

##Description and Uses


See Scaling

The sprite swapper component adds the ability for an image to use different sprites, depending on the scale factor. When used in conjunction with a MaterialUI Scaler, it allows for seamless transitions of high-quality assets, no matter the target form factor or resolution.

NOTE: This component does nothing unless a 'MaterialUI Scaler' component is attached to the base canvas.

A shadow in action

A scaled sprite on an image object is swapped out at startup, for one that better matches the scaling factor/resolution (400%)

A SpriteSwapper and Image component

Clone this wiki locally