Z
Z
Zimaell2020-12-03 13:08:08
Unity
Zimaell, 2020-12-03 13:08:08

How can the prefab display the desired image?

I have a prefab to which the script is attached, the script has variables in which the names of the sprites are placed, that is, which sprite should be displayed on the prefab.
How to display the desired image in the prefab based on the fact that he knows the location of the image?

For example, I need to animate how the cube rotates and I have 20 pictures of it, at the right time I need the right picture to be displayed so that there is a twisting effect.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question