S
S
Sergey Bezrukov2019-01-29 22:30:25
Android
Sergey Bezrukov, 2019-01-29 22:30:25

How to implement sprite flip in unity3d?

What are the options for implementing a sprite flip in untiy3d, such as in games like find a pair?
s1200

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Denis Gaydak, 2019-01-29
@Hrederik

- animation in a couple of frames. just replace a set of pictures with a sprite)
- two textures. heads and tails conditionally. and "sagging" scale. we replace at the moment when it is flat)) in fact, the width changes from the current to zero. we replace the texture (sprite) and return the width back. animation or script to do, this is the tenth thing.
- make a real 3d object with textures on both sides (for example, two quads). and rotate it just simply))
this is the first thing that came to mind offhand)

A
artshelom, 2019-01-29
@artshelom

The element that the sprite is placed on has a rotation parameter with it.

G
Griboks, 2019-01-30
@Griboks

We need to change the sign of scale.x.
Or, if animation is not needed, just check the Flip X checkbox for the sprite.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question