I made an animation in Blender, and I don’t know how to make it play in Unity.
Thanks in advance. ![]()
I made an animation in Blender, and I don’t know how to make it play in Unity.
Thanks in advance. ![]()
First, is the .blend or FBX file in the Assets folder.
At first I had them both, but I saw that the .blend file had the camera following the animated object so I moved it (The FBX file is in the assets folder).
When you drag the FBX asset into the Hierarchy, it must have an Animator component on it, and then, the Animator component must have a animation Controller assigned in the Motion slot. The controller is another asset in your Project folder. Create one, and then add a new state by dragging the animation clip in the FBX into the Animation window.
Denis, please don’t forget you have an outstanding invoice to pay.
OK, I did everything you said. Do I have to do anything else, or can I now activate the animation using scripts?
That should work. What does it do?
It’s a spawning animation that makes the character grow from nothing as it floats up and rotates, before floating back down and giving control to the player.
I should have phrased that better. When you press play, what happens?
Also, is that animation related to @AaronC ? You should probably pay his invoice.
The animation I’m talking about is my own version of what I’ve asked AaronC for, since I couldn’t get his animation to work as I wanted it to.
Also when I press play, the animation works fine. Would I use scripts to make it play only at a certain point? Since whenever I hit play it activates and that’s it, it just stands there.
Yeah. So, in order to control it from script, you’d probably need to add another state for idle/inactive, and then assign the appropriate transition lines. Then, when you click on the transition line, you will see that you can add a parameter. You’d add a trigger param, and in script, you’d call Animator.SetTrigger() to switch states.
Thank you. ![]()
I’ve never used the animator before, could you possibly show me what it should look like?
Watch this whole video:
Moving forward, doing google searches and reading around, you can probably get some good results for most of your questions. It’s the most valuable skill a game developer must acquire to finish a project.
You got a pass for this one, because the Unity documentation actually doesn’t tell you how to add transitions, only states. Shame on them.
Thank you. ![]()
Thank you for the advice. ![]()
The solution provided was the solution requested - and was done on the cheap as a favor, and was modified even after delivery for you because you changed your requirements. If you request a solution and that solution is delivered, you pay. Its called business.
If you’re going to be a dodgy client around here - expect to be treated like one.
Invoice unpaid and cancelled…
A warning to others…
Denis Pawszok /dawit444@wp.pl