Questions tagged [animator]
The animator tag has no summary.
66 questions
1
vote
1
answer
59
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 ...
2
votes
0
answers
136
views
How to prevent glitches in script-driven animations?
I have animations that are played via script. Occasionally, glitches occur at runtime that I can't explain. Here is an example:
These glitches do not occur consistently but appear in almost all ...
0
votes
0
answers
89
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
123
views
Unable to play animation from another layer
I'm attempting to play an animation from different layers but having some difficulty. I'm trying to play animation transitions in one layer and then go back to the base layer to play an animation ...
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, ...
1
vote
1
answer
266
views
I am testing the flyweight pattern on thousands of GameObjects but its not helping save memory. What am I doing wrong here?
I am trying to understand the flyweight pattern better by trying to optimize memory usage by spawning 10000 copies of an enemy GameObject that I have which has an Animator component, SpriteRenderer ...
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
2
answers
102
views
How to correctly add animation for a rotating object with Script?
I have the following structure of my Turret:
The Body rotates by Y and Head rotating by X via script to a target, I have created simple Idle animation for turret which rotate Body and Head. The ...
0
votes
1
answer
239
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 ...
1
vote
1
answer
195
views
How can I fix this NullReferenceException error while all the references are set to specific objects?
I'm currently working on a boss fight for my game.
My problem is that I keep getting a NullReferenceException error that prevents the boss (named The Smallest Stain)...
0
votes
2
answers
558
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
0
answers
44
views
What transitions and triggers should be used in Unity Visual Scripting for an Animator with two main states that toggle back and forth? [duplicate]
I'm using Unity Visual Scripting and have a GameObject with a Sprite Renderer and also an Animator component with 3 states: FadeIn, Fadeout and Idle.
The main goal is to control the alpha transparency ...
0
votes
1
answer
172
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
1k
views
What is ApplyBuiltinRootMotion and how to use it?
The character in my game has humanoid feature. I have unchecked "Apply Root Motion" in Animator component and use scripts for its movements. I want to implement a Ledge Grab Jumping movement....
0
votes
1
answer
294
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 ...