All Questions
Tagged with animation unity-game-engine
1,082 questions
0
votes
0
answers
19
views
Unity ReadObject in profiler causing spike for sprite animations
So it appears in the profiler that whenever one of our sprite animations is played for the first time, it causes a spike on the CPU as the sprite atlases are loaded into memory. This can cause a ...
0
votes
1
answer
47
views
Can I play random attack animations without making state for each animation?
My player can use X weapons and for each weapon type I have X attack animations
Is there is a way to change state’s motion in runtime? So I don’t need to create 4+ states for each attack animation
...
0
votes
0
answers
24
views
How to change direction of animation in Unity
I downloaded the free assets and tried to code the walking for the model. But it always turns backwards and walks backwards.
I'm a beginner and I think it's because of the direction of the red arrow, ...
0
votes
0
answers
18
views
Can you use the Animation Rig Package with OnAnimatorIK?
I have a character rigged with the Animation Rig package and my goal is to align the feet with the ground via FootIK. I can see that OnAnimatorIK is being called. I can also see that a new position is ...
0
votes
0
answers
26
views
How do you get a prefab w/ Skinned Mesh Renderer to attach to an avatar on instantiation?
I am working on a modular equipment system. The player will be able to swap out many pieces of gear and see it change on their model. I ultimately want to load the gear pieces through the addressables ...
0
votes
0
answers
43
views
How to export game objects in Unity as FBX files (for animations and automatic import)
I am working on exporting a specific game object as an fbx file through Unity.
I have succeeded in creating an fbx file for a single frame using the code below.
However, I have two questions regarding ...
1
vote
0
answers
17
views
Unity Animation Stuck
I'm new to unity and I'm having an issue with my Jump animation. The animation plays when I click space bar, but it freezes after. You can see in the animation window that the transition isn't working....
0
votes
0
answers
40
views
why is this animation texture baker shader not compiling?
ok so I'm trying to bake an animation into a texture so I can use that in a material to run later. I currently trying to use the following code I found on GitHub to do the job for me:
the_code
I don't ...
-1
votes
1
answer
59
views
Unity + C# bouncing animation
I'm currently working on a slot game in unity and what I'm trying to achieve is that once the reels stop spinning, the symbols bounce a little bit up and down before they come to a full stop.
In my ...
0
votes
0
answers
26
views
Unity Randomized Animation is synchronized across all prefab instances [duplicate]
As per title, I am randomizing animation using the following script:
private IEnumerator RandomizeAnimation()
{
while (true)
{
var rand = Random.Range(0, 100);
switch (rand)
...
0
votes
0
answers
54
views
SetCurve doesn’t work at runtime in Unity build with Animancer (non-humanoid avatar)
I'm trying to generate and play animations at runtime in Unity using Animancer. My current implementation uses AnimationClip.SetCurve to create and play the animation, which works perfectly in the ...
0
votes
0
answers
20
views
Parsing and Playing AMC/ASF in Unity
I've been trying to manually parse and play amc/asf files in unity. I've parsed the data but I'm not applying it correctly.
Here is my setup:
Parsing the data
It is assumed that Unity uses a left-...
0
votes
0
answers
47
views
Unable to copy unity animation properties from one file to another
I have a character model with 50 animation, all of them will have same properties Like Root Transform Rotation, Root Transform Position (Y), Root Transform Position (XZ), but i can not see any option ...
0
votes
0
answers
38
views
IK and walking animation behaves strange together
I’m trying to make foot ik for my character. Character has also walking animation from mixamo. I’m giving weights (SetIKRotWeight, SetIKPosWeight) by using animation curves. If walking animation shows ...
0
votes
2
answers
340
views
Make Snake move smoother, look like Google Snake in unity
Trying to make a snake game, but my version is a little complex, because I am not using a single green or black box for snake, I use different sprites for snake head, tail, body, and corner like this. ...