Making a RTS game #45: Importing models & animating our characters 2/2 (Unity/C#)

Let’s keep working on our RTS and see how to animate imported 3D models!

Mina Pêcheux
.Net Programming
Published in
11 min readJan 20, 2022

--

⬅️ Tutorial #44: Importing models & animating our characters 1/2 | TOC | Tutorial #46: Saving our game scene data… ➡️

📕 Get the ebook and bonus material on Gumroad!
🚀 Find the code of this tutorial series on my Github!

In the last tutorial, we discussed how to import 3D assets into Unity that are shared in a common exchange format, .fbx, and we prepared a basic Animator to set our character’s default animation. Today, let’s continue and see how to add some smarts to our Animator, so that we can update the current animation from our C# scripts.

Note: in this tutorial, I’ll keep on using my little low-poly 3D knight character model. You can get it on CG Trader if you want! :)

Foreword: fixing our reference to the mesh renderer

Before we dive into animation stuff, there is a little thing we need to discuss: how to properly access our…

--

--

Mina Pêcheux
.Net Programming

I’m a freelance full-stack web & game developer. I’m passionate about topics like CGI, music, data science and more! Find me at: https://minapecheux.com :)