D
D
DarkByte20152016-10-07 20:43:31
C++ / C#
DarkByte2015, 2016-10-07 20:43:31

How to make multiple sprites for one prefab?

Is it possible to make multiple sprites per prefab? I am making a simple 2D snake and I wanted to make different head sprites for each state (up, down, left, right). (There's just a face changing: D) Or how to change them dynamically?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Georgy Pelageykin, 2016-10-07
@DarkByte2015

SpriteRenderer .sprite to the rescue. A more advanced option is through animation. I didn't study the question myself, but it definitely knows how to states, transitions, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question