- Home /
Question by
muhammadtahiriqbal · Dec 01, 2016 at 08:35 AM ·
sprite2d game
i am makeing a 2d app like Doctor xClinic
this app totally based on 2d images and alpha tweening of images.So should i use UI image(canvas image) object or 2d sprite image object.what is best practice.i am making game like this https://play.google.com/store/apps/details?id=com.tabtale.dentistmania&hl=en.
Comment
Best Answer
Answer by tkamruzzaman · Dec 01, 2016 at 04:04 PM
Use 2d sprite Image instead of UI Image.
Enabling - disabling UI elements is really GC expensive.
Applying physics in UI may result unexpected behavior because UI is only processed in the main Update/LateUpdate loop. Changes in FixedUpdate do not apply until the next frame.
Moving of UI elements also difficult compared to 2d Sprites.