UNITY | PROJECT | SPACE SHOOTER 2D | 6. Explosion​ Animation

2
Explosion Sprite | Sprite Editor

 

4
Explosion Sprite | Sprite Editor | Slice

 

5
Explosion Sprite | Inspector
  • For the Sprite of Explosion in the Inspector
    • Set the Sprite Mode into “Multiple”
    • Set the Filter Mode into “Point(no filter)”
    • Set the Max Sie into “1024”
6
Creating Animation from Sprite

 

7
“ExplosionAnimationContoller”
8
“Explosion” GameObject

 

9.1
Deselect “Loop Time”

 

9.2
“Explosion” Animation
  • “Explosion” Animation is appearing continuously

 

 

9.3
“Explosion” Animation

 

  • “Explosion” Animation works well except that the last frame of the animation lasts in the scene

 

10
Creating & Adding “Destroyer” Script

 

11
“Destroyer” Script
12
“Animation” Tap
13
Adding an Animation Event to “Explosion” Animation

 

14.1
Adding an Animation Event to “Explosion” Animation
14.2
“Explosion” Animation
15
Creating “Explosion” Prefab