Questions tagged [animator]
The animator tag has no summary.
66 questions
0
votes
1
answer
42
views
Animation can't disable gameobject
I'm using a very basic animation to create a transition, which involves deactivating a gameobject on the last keyframe.
Goal:
The ChangeRound animation is about 1 second long. It enables the UI image ...
0
votes
0
answers
83
views
Android ValueAnimator onAnimationUpdate jumps animated values!
ValueAnimator sounds like an awesome way to animate values which can be used on views. But, somehow the animated values are not showing up as they should!
I used this set up before to animate a ...
0
votes
0
answers
79
views
What's the optimal way of reusing animation, rigs and controllers in a complex setup with multiple characters in Unity?
What's the optimal way of reusing animation, rigs and controllers in a complex setup with multiple characters in Unity 2022.3?
I've got a somewhat complex scenario:
One character that has 20 skins, ...
0
votes
2
answers
104
views
Prevent rotation after setting Human Pose
I'm attempting to move the fingers of a prefab using muscles with the SetHumanPose method. However, the prefab is rotated 90 degrees on each call to ...
0
votes
1
answer
237
views
Animations don't transition when prefab instantiated by code
I am working on a script that responds to the player pressing a button by instantiating a prefab into the scene.
The problem is the animation is not working on the spawned prefab. The conditions of ...
0
votes
2
answers
553
views
Make a script move a game object's transform when it has an animation
I am working on a melee game project, and i have a gameobject which holds the weapon, and it is what moves when i swing the weapon. It has an idle 'animation' (its just one keyframe of the idle ...
0
votes
1
answer
169
views
How to sequence Animators for a list of GameObjects in Unity?
I created a Prefab called White Letter and added an Animator to it to create the illusion of falling letters.
I use this Prefab to generate words; here's an animated gif of what it looks like in ...
0
votes
1
answer
287
views
Smoothing transition between Animator and script controlled character
I have a NPC which has a strict match logic (bot player), and I am moving it on FixedUpdate(),
However, on certain events in the game I am activating animations ...
0
votes
1
answer
220
views
Implementing the integration workarounds for AnimationRigging and Animancer
I am working on a project using both Animancer and Animation Rigging. They mostly work nicely together, but, as described here, there is one problem: When you add a new ...
1
vote
1
answer
985
views
Animation clip that acts relative to the object's current position
I am making a 2D game in Unity and I want to create an animation that works with any object and takes that object's position into account.
The animation should be a little bounce, basically move it up ...
1
vote
1
answer
1k
views
Forcing animations to play in real time, ignoring time scale
When the character dies, an animation plays, and then the scene resets. What I want is that nothing moves/animates except the character and the life bar so I use ...
1
vote
0
answers
296
views
Using an Animator State as a Switch with no Animation
I have the attached portion of a sub-state machine in my animator. The parent layer is connected to the states "Standing" and "Prone Idle" using transitions with conditions "...
0
votes
0
answers
68
views
Why does this work but this doesn't even though they are the same thing?
In my game I am trying to trigger the death animation but it doesn't work when I use anim.SetBool("isDead", true); however when I use ...
1
vote
1
answer
2k
views
Animator stuck in previous state and not transitioning, even if transition condition is true
The animator of my character gets stuck from time to time into the first attack animation instead of transitioning to the next one, even if the condition of transitioning is met.
This problem gets ...
0
votes
1
answer
258
views
Trying to access existing animator SetTrigger does nothing and returns error
First of all, I have a character with 2 armatures (Upper/Lower Body), where the Upper Body is the child of the Lower Body's root bone (Hip). This is intended, and I really don't want to touch the ...
0
votes
1
answer
1k
views
Unity Animator Ignoring "Higher" Layers
I have a rather rudimentary layer set up:
Lower Body: no mask, full weight, override.
Upper Body: upper body mask, full weight, override. This works as intended.
Standing Up: full body mask, full ...
1
vote
2
answers
445
views
How to check if gun may shoot again (because animation has stopped playing)?
When the user presses the fire button, I set a trigger:
_animator.SetTrigger("HG_Shoot");
This trigger causes a "pistol shoot" animation to be ...
0
votes
1
answer
105
views
Why does Animator component prevent the player from facing left?
I'm making a 2D platformer with Unity. A few days ago, I was testing the game; the player could face right and left based on its moving direction and animations were playing correctly. I exited ...
0
votes
0
answers
26
views
How would I use an object from another animation in Unity?
So I have two different .blend files with two different animations. Let's call my aiming with a gun animation animation A, and my other .blend file with idle, run, and jump animations animation B. If ...
0
votes
1
answer
103
views
How would I add keyframes to my animation clip from another object in Unity?
I am creating an FPS game which will have many weapons that have their own animations. I will need to access keyframes of the character's position, rotation, and scale, how will I do that? I can only ...
0
votes
1
answer
433
views
How do I set decimal values in 1D blend tree?
I have created a 1D blend tree.
It is being used for a 3rd Person Controller.
The blend tree consists of 3 animations:
aim pistol down to the floor
aim pistol at middle of the screen (straight ...
0
votes
0
answers
41
views
Unity Animator not properly following animation transitions
I have an Animator that has 3 different states. Walking, Climbing, and End of Climb.
The diagram is shown below:
I have 2 bools, isClimbing and ...
1
vote
0
answers
61
views
Ethan does not run
I just imported Ethan - the third person character to my Unity 2019 project and I moved him around a plane. But for some reason he doesn't run, only walk. I logged the ...
0
votes
1
answer
865
views
Animator State does not switch immediately through code, even tho all transitions have "Has Exit Time" checked off
first of all, this is my code, I'm prototyping a state machine using Unity Animator (First Time) and I'm stuck coding a simple burst of speed.
...
0
votes
1
answer
1k
views
When importing Mixamo animated characters into Unity, they come without avatar?
I'm using Unity 2019.3.3f1. I create the character in Adobe Fuse. I uploaded it to Mixamo and choose an animation. I then downloaded the fbx for unity file. When imported into Unity, it is visible ...