GMU:Digital Puppetry Lab/Group Ben & Luca: Difference between revisions

From Medien Wiki
Line 71: Line 71:


===Setting up the Sprites in your Scene===
===Setting up the Sprites in your Scene===
<gallery>
 
File:unity10.png| The Animator Controller
[[File:unity10.png|500px]]
File:unity12.png| Animation Tab
[[File:unity12.png|500px]]
File:unity3.png| Prefab
[[File:unity3.png|500px]]
File:unity15.png| Collider
[[File:unity15.png|500px]]
</gallery>
 
You can now simply drag your sprite from the Assets Folder into your Unity Scene and it will automatically create an "animation controller" and an "animation" of your sprite.<br> As default the Animation will be stored as a loop.
You can now simply drag your sprite from the Assets Folder into your Unity Scene and it will automatically create an "animation controller" and an "animation" of your sprite.<br> As default the Animation will be stored as a loop.
By pressing play your character should now play the animation you first created in "aseprite". Now your object needs a "Rigidbody" and a "Box Collider" so it can behave as a physics Object.
By pressing play your character should now play the animation you first created in "aseprite". Now your object needs a "Rigidbody" and a "Box Collider" so it can behave as a physics Object.