#🏃┃animation

1 messages · Page 11 of 1

twin musk
whole kayak
#

Oh okay ill check there then

twin musk
#

picture from google:
similar to what iam trying to achieve

uncut salmon
#

If you're doing sprite sheets, then that's of course made outside of Unity and imported as a sheet. Then you can make an animation which flips through the sprites in Unity.

twin musk
#

so that would be a photo then allright

i tought i could use .chproj or .fla .xfl to create a less "manual" importing for animations

#

thanks alot

uncut salmon
#

There may be plugins to allow workflows with specific file types. Something to search up

hybrid tinsel
#

Photoshop is preferred for creating layered files for rigged sprite animation. For frame/sheet animation, you can use pretty much anything.

fallen bloom
#

How would one do this?

#

And you mean from the beginning create a 3D character?

#

I essentially just have a site that allows you to make character sprites cause I can’t draw but they only are animated in the 4 directions, I just wanted to know if there was some wizardry or AI stuff that could help me lmao

hybrid tinsel
#

Make the beginning and the end match, including the tangents of the curves.

little depot
#

Behold some smooth anims

#

Now I just gotta get them to actually WORK in a script

little depot
#

Ah

Got it to work

#

It’s pretty simple

coarse galleon
#

First time exporting custom animations to Unity. In Blender, the body was a child to the joints; imported through FBX they're on the same level. I put an Animator component on the package holding both the body and joints; didn't work. Tried it on both the children; didn't work. Is there a different way I should've exported them or am I just utilising the component wrong?

agile solstice
little depot
#

Thanks :D

Animation is my speciality!

#

I even got ADS working!

#

I love ADS

terse cloak
#

Hello, i'm a newbie at coding and game development and i'm trying to sort our some head movement
basically i want the players head to change to the appropriate animation depending on the direction of the cursor and the location of the player at the moment it seems to work depending on the direction of the cursor by comparison to the spawn point not the player.
i'm guessing its a script issue i've tried...

animator.SetFloat("mousePosX", mainCamera.ScreenToWorldPoint(Input.mousePosition.x));
animator.SetFloat("mousePosY", mainCamera.ScreenToWorldPoint(Input.mousePosition.y));

but that returns an error 😢

any tips would be greatly appreciated ❤️

tribal crypt
tacit hazel
#

Thank you for reply, but transition is using boolean for checking if player is moving (it is checked whole time (even when changing direction))

#

And I am detecting if player is changing direction by comparing players previous normalised vector of forward direction and his current normalised vector of forward direction

#

If their absolute difference is >= 1, then direction is changed

agile solstice
#

Still that's only the thing that sticks out to me, real problem could be elsewhere

#

Also, it looks like you have quite long offsets of almost up to a second on some transitions which may cause them to be missed for very short states or feel sluggish even in ideal conditions

tacit hazel
tacit hazel
#

And all animations are from mixamo

agile solstice
#

@tacit hazel The speed might not be the problem as I assumed, since the variable is at least reported to stay at 1 during the turn
However you may notice that at the precise moment of turning and transition to next state, the 180Turn condition is not met
Logically if you compare the character's foward direction to find the difference over time, it'll be true only after the character's motion has reversed

#

The solution might be to detect raw input instead which gives you results on time, and perhaps to add some extra check to Idle state transition as a precaution to make sure it won't fire before you've determined a change in direction

tacit hazel
tacit hazel
agile solstice
# tacit hazel What do you mean by raw input?

You'd read the input directly for the parameter so you know what keys are being pressed, rather than where the character is moving
If you're using the old Input System you'd have to specify "raw" input because otherwise you get a smoothed value that reacts with a delay

tacit hazel
#

That would be very usefull

agile solstice
tacit hazel
# agile solstice <https://docs.unity3d.com/ScriptReference/Input.GetAxis.html> <https://docs.unit...

Oh I was comparing Vector3 input values not player.forward. I dont know why i said that i was comparing forward vectors. I mislead you sry. Basically what I was doing was: I saved previous vector3 input of direction that character was suppoused to move at based on his input values. I later compared z axis value of that previous movement direction with z value of current movement direction (both of vectors are normalized) i then checked if their absolute difference is >=1

#

Why isnt that method instant as well

tacit hazel
agile solstice
tacit hazel
#

And if I am using it to check condition in transition, result should be instant right

agile solstice
#

If you want it to be smooth, that is

tacit hazel
agile solstice
# tacit hazel Yes, my jumping is also laggy (if I hold SPACE button, animation triggers every ...

Of course it can be fixed if you identify the issue
Buttons are just a binary signal so there's no smoothing or floating point inaccuracies to worry about, unlike with axes
The most common cause for that problem you describe is simply that there's no transition to a second jump at that specific time from the current state
No transition to jumping from falling or landing
You can also make transitions from states back to themselves, such as jumping to jumping
Now since it seems you start having a lot of transitions, consider reading all about animation layers, blend trees and sub-state machines to cut down the need for so many

formal urchin
#

can I just not constrain any transforms when the animations are not playing, as how it should be?

hybrid tinsel
#

You can do whatever you want to with the transforms as long as you do it after the animator is done with them for that update.

surreal niche
#

bumping this, since I am still stuck on it and it seems to have gotten burried...
does anyone have an idea what could be the cause?

twin musk
#

So, my root-motion character seems to be resetting position every time animation ends.

#

I don't have anything else moving it manually. It's all root motion too

tribal crypt
#

bumping this since I am still stuck on

hybrid tinsel
hybrid tinsel
surreal niche
twin musk
olive heart
#

how can I make an animation not loop while editing or slow it down? as i can make it not loop in runtime but how can I do that in the editor

hybrid tinsel
cloud hornet
#

Anim loop player movement issue

signal marten
#

Hello, I need some help. I have created and animated a character in Blender, exported it as an FBX, and imported the fbx into Unity. In the import settings, the Idle animation appears to have imported perfectly (note that the characters hands are correctly positioned on the gun). Then when I look at the created animation the hands seem to be broken (note the neutral pose of the hands and that they are not positioned on the gun). Any one know what I'm doing wrong here?

UPDATE: I seem to have gotten it working by moving the Idle animation to the front of the timeline in blender. It was previously at the end of the timeline immediately following an animation that involved VERY large position changes. My best guess is that Unity did a bad job of smoothing the transitions from the animation preceding the Idle, but that's a pretty uninformed guess. If anyone can tell me what's going on here, I would appreciate being able to avoid this in the future.

tacit hazel
agile solstice
# signal marten Hello, I need some help. I have created and animated a character in Blender, ex...

When a keyframe moves a transform, it stays there until another keyframe moves it but the problem is that some contexts keep this data while others reset it
So when you have animations chained together on the timeline, you need to be mindful if the pose data is modified from the previous pose or from the resting pose
I don't know the exact rules or best practices but I padded every clip with the t-pose when exporting them together as one timeline

#

The problem also happens outside of Unity in Blender's action editor
When switching between actions, keyframes are only added, not reset, unless you go through a fully keyed resting pose action first
In both cases you can't know for certain if you're looking at a combination of two clips or just the one, unless you isolate and confirm it

signal marten
frail raft
#

I have an asset that has an idle and a run animation, but the run animation is pretty abrupt and looks odd when going from idle straight to the run animation.

Is there a way to insert one frame at the beginning of the run animation, like a transition that plays once whenever it goes from idle -> run?
I can maybe edit the sprite to add an in between frame of animation, but I don't want it part of either the run or idle animation, just in the middle.

agile solstice
signal marten
signal marten
signal marten
# agile solstice When a keyframe moves a transform, it stays there until another keyframe moves i...

I was just goofing around with it, and I think I found the problem. in one of the animations I have his weapon disappear. I tried achieving this by scaling it to 0. After a little messing around I noticed that It's only keyframes after this point that get messed up. When I changed the scale to .001 instead of 0, it all started working.

I can see why scaling to 0 is a bad way to make something disappear, but I'm surprised I was allowed to get as far as I did without Blender or Unity pointing me to that problem.

agile solstice
tired chasm
exotic garden
#

hello guys a question about cable wire & movement.
have to model a cable between 2 elements.
The ends of the cable must be mobile and able to move on 2 or even 3 axes, any idea how to do this?
Is it possible to do this via an iK structure in maya, blendeer... ? is unity going to manage it well?

exotic garden
olive heart
agile solstice
#

I usually just drag the seekbar manually to get a slowed down view of the animation

agile solstice
# olive heart Gotcha thanks 🙏

If you enable sample rate here, you can change it to alter the speed of the animation without changing keyframes
But it does change the speed elsewhere too

#

Note that "sample rate" is not "speed" exactly so if you need to change the speed of the animation it may be better to change the state speed from Animator, or stretch out the keyframes

olive heart
visual jewel
#

I've got this vehicle made in blender, do I need separate animation for forward and backward rotation, or can I use just a forward rotation animation that will start rolling the other direction when i ride backwards?

glass cairn
hybrid tinsel
hybrid tinsel
hybrid tinsel
hybrid tinsel
#

Or even just physics joints on your bones

exotic garden
# hybrid tinsel While you can use IK I probably would use a cloth sim.

Hello, thx for your reply.
I think a I gonna proceed the following way ;
Im going to Bone the cable (inside blender) and export it as .fbx to my customer who is gonna integrate it inside unity (using joints).
The ik spline seems to me a little "complicated"(to do for me) inside blender.

rigid salmon
#

I setup the aiming animation rig on the charachter enemy model which already has animations controlled by animator controller. When I play the game rig is working fine as intended but the moment I setup an avatar to run animations the game crashes. IT runs fine in both cases if there is only rig or only animation but crashes when both of them present at the same time

#

The model is humanoid and the animations attached are also humanoid

trim hatch
#

how can I make a animation transition preset without it changing where the transition goes to?

#

i hate having to change transition time every time i want to make a new transition

gleaming lichen
#

I just imported a mixamo animation with my skin but for some reason it won't play. I'm able to see a preview but it just wont play in the actual game, I added this to an animator which is attached to my object.

#

It also shows that it's playing in the animator tab

tired chasm
trim hatch
tired chasm
remote shoal
#

In Unity how can I make the railway track force the wheels to rotate when the curvature starts (the wheels of the cart will be rigged) When the cart is moving I want it to stop (get stuck) at the curvature if the wheels can't turn. This is sort of like steering simulation. I want the wheels to **steer **according to the track's curvature and according to the rig. If the rig does not allow it to steer I need it to stop moving (this is also a way for me to test if the structure of the wheel axis actually allows the steering I am looking for).

agile solstice
#

Note that in reality sharp 90 degree turns aren't mechanically plausible or even possible without at least multiple axes of motion per axle and a lot of slowing down

remote shoal
remote shoal
agile solstice
remote shoal
earnest knoll
#

What do you think of my first Unity animation with ship size comparison?
Do you have any kind advice to recommend me?
https://youtu.be/gvUpj0xkXzk

Animations and comparisons of the ship sizes of famous pirates such as BLACKBEARD on his frigate, the HUGE 116-gun ships of the line, today's HUGE mega yachts, the world's biggest liners and supertankers.

The classes of ships include the largest sailing ships, the largest submarines, the largest ocean liners and the largest supertankers.

Suppo...

▶ Play video
chilly lichen
#

Hey guys, I am a beginner to Unity and have animated my character using Mixamo however, when I attach all my animations to the character using an Animator Controller. The character starts losing the rotation (i.e. it starts facing in some other direction) while walking forward.. Is there a way to lock their rotation?

chilly lichen
sage plover
#

wherever my target is the hand will be on the complete wrong side. Whats going on?

I'm using Animation Rigging Two Bone IK constraint

hybrid tinsel
sharp coral
#

I am on my hands and knees BEGGING for an answer. The whole animation will not import whatsoever into unity (2019.4.31f1.)

On the right you can see the blender window showcasing I have BAKED, PUSHED DOWN ANIMATIONS.
On the left you can see my Blender export settings
And in the middle, you can see the import settings in Unity. Notice something? Like how they're #wrong?

Please save me I've been dealing with this for the last hour and a half

rigid salmon
#

I set up the rig for the enemy to aim toward the player. Everything is set up correctly, It was working perfectly fine but when I attached the avatar to the animator controller of the enemy the unity crashes every time I play the game. I resolved this issue by making the rig object the sibling of the bone hierarchy of the enemy. But now the enemy aims a bit upward instead of toward the player. The right hands is not positioned correctly towards the player and I cannot rotate manually ofc

agile solstice
formal urchin
#

this

sharp coral
#

well, kinda fixed it

agile solstice
sharp coral
#

The run animation is a little wonky, but it's fine since I now need to remake them to compensate for being 60fps. I'll just hope for the best

echo dragon
#

Okay So I have a dumb question since I am new to this- if I wanted to make a slime with blinking eyes, I make the slime and textures in Blender, and then do the animations in Unity, correct?

junior zinc
signal citrus
#

For some reason my sprite says missing sprites in the Animation tab whenever I instantiate it. I assigned the sprites in the Animator Clips on the prefab. Please lmk if u got any solutions.

gaunt cosmos
#

I retargeted an animation from one rig to another in blender using rikoko

#

Then I exported to unity

#

When I play
The gameobject moves a bit in the x axis then the animation plays as usual

#

How do I fix this?

junior zinc
#

might be the issue here

marble frigate
#

Hey, how can I access this progress bar that unity displays for a blendtree in code?

#

normalizedTime doesnt work, it just shows the time elapsed since i entered the blendtree

#

State machines dont work either

hybrid tinsel
# gaunt cosmos How do I fix this?

Sounds like a blender problem though you might be able to fix it by cropping the imported frames in unity or making an editable duplicate in unity and editing it.

hybrid tinsel
formal urchin
#

I got that "Default" animationState, it is not set to loop and it seems to play only once

hybrid tinsel
#

I explained why.

formal urchin
#

is the animator not done with the update when the animationState has finished playing?

hybrid tinsel
#

NO.

#

That has nothing to do with it.

#

Every single frame, the game calls Update, then it calls the Animator, then it calls LateUpdate.

#

So if you move something in Update, the Animator will move it right back before anything is shown.

olive heart
#

How can I make an animation play in reverse without making a whole new animation?

olive heart
#

Sometimes after editing my ui animation it waits like 3 seconds before actually going visible and the animation doesn’t look right after the 3 seconds. This only happens sometimes after editing and I think it has to do with animation events. I can tell its running before the 3 seconds as the animator shows it is

#

It’s hard to explain and I’m on version 2021.___ something

hybrid tinsel
#

Even harder to understand your explanation, sadly

hardy vale
#

you cant see the animation popup but i run the animations and they look ok, just a huge noob with animations xD

hardy vale
#

idle (if IsWalking is true) transitions to WalkN, and WalkN (if IsWalking is false) transitions to idle. I run it and it only plays the first animation

agile solstice
agile solstice
#

You really should look into blend trees for that type of system

hybrid tinsel
#

Yeah, like Spazi said you'd need transitions between each direction and the other directions.

hardy vale
#

works almost perfect

agile solstice
hardy vale
#

only thing left is colliders

#

but is tricky since it's a 3d core with flat ground and a fixed ortographic camera, basically 2d game

agile solstice
olive heart
frail raft
#

I have very little art skills, but what could be a way that I could take this sprite which has 3 attack angles and change it to be a free aim. Basically detach the arm and bow?
I'm using corgi engine which already has built in mouse aim for projectiles, but it looks funny when the arrow shoots out at an angle the sprite isn't aiming at.

devout ember
#

can i change the interpolation of this transition?

hybrid tinsel
hybrid tinsel
devout ember
hybrid tinsel
#

I dunno, I haven't done it.

#

I know it's possible because someone made an addon to do it.

#

But there's no built-in way.

hybrid tinsel
olive heart
#

It’s hard to explain

hybrid tinsel
#

Your transitions are probably fucked up

twin musk
hybrid tinsel
twin musk
#

baking might work?

hybrid tinsel
#

It might; it is at the very least the first thing I'd try.

twin musk
#

Plasma youll get banned lmfao

#

PLASMA YOU NEED THIS SERVER

#

Bro bruh

hybrid tinsel
hybrid tinsel
#

Might be an incorrectly set up avatar, could be IK if you are using IK

#

Might just be a bad animation clip

twin musk
twin musk
#

exept 1 for some reason

hybrid tinsel
#

I mean, really don't have enough info to try and debug it. An avatar issue still seems most likely.

twin musk
#

Just using a basic tree (Ignore the name lol I was testing dif anims)
And animator has no avatar

hybrid tinsel
twin musk
#

Avatar is the default pose or something?

#

Oh and btw I mistaken again

#

The skin itself moves, not the bone

#

This is such a stupid issue

agile solstice
#

Huh, wonder why Animator only offers linear transitions

#

Nonlinear blends and extrapolation would've been really powerful

hybrid tinsel
#

Because Unity hates animators

lusty pebble
#

When creating an animation, is there a way to add a keyframe for all bones. For example I want to keyframe the rotation for all bones at key 0 in their current starting position.

agile solstice
rigid salmon
#

Bone rigging in humanoid charachter is influenced by animation from animator. Although the weights of the rig is set to 1

formal cloud
#

when i turn right or left it makes the character go to the other side of the box collider

#

i have code that flips the sprite when turned right or left but why is it moving the sprite?

pale harness
#

Hello!
Does anyone know how I should deal with animations in Unity that switch parents mid-animations? I have an animation which, in Blender, starts out with the gun parented to the right hand, but switches to being parented to the left hand in the middle of the animation, and then switches back to the right hand. The problem is I don't know how to translate these parent-relationships to Unity. Even if I change the weapons parent through code on the exact right frame, there's still a noticeable hitch and the weapon is aligned slightly differently each time. The video here on discord shows the intended animation in Blender, and the Drive-link below shows how it looks in Unity if I don't change the parent through code, and then how it looks when I do. How should these kinds of animations be handled? I tried Unity's animation rigging package and its multi-parent constraint, but it didn't do anything.
Thanks in advance!

https://drive.google.com/file/d/1mBmCUYVul6p9zGQhe7REjWYT2mXcbNDS/view?usp=sharing

olive heart
#

How can I override an animation? for example when I run the animation again while its still running

pale harness
twin musk
#

Does unity not inerpolate animations when playing them at slower time scale?

twin musk
#

Is there any way to apply root motion from the object to the parent

long maple
#

Guys, can I change a buttons icon without using annimation?

#

and switch the costume?

uncut salmon
#

Sure, you don't have to use animations for anything.

#

Anything you want to do can be done purely in code.

twin musk
#

am happy now

long maple
#

Is there a way to have sprite swap and Color Tint both selected?

hybrid tinsel
hybrid tinsel
hybrid tinsel
rigid salmon
thin skiff
#

Could someone create me a very short animation for my rig for my indie game? I'd pay you 30$. Contact me via direct message/private message or reply to my message here if you're interested.

glossy marsh
#

can anyone help me with my first animation

i made a bullet animation exported it as animation and now i am in animator but its showing nothing

what do i do?

#

anyone??

agile solstice
glossy marsh
#

i want to make it in a bullet

#

but

#

how do i do it

#

oh wait got it

agile solstice
glossy marsh
#

i want it in 2d

#

also

#

@agile solstice can i add direct animation to an object like adding a sprite?

agile solstice
glossy marsh
#

nvm i did it

#

thanks

calm delta
#

Anyone with any tips on how to rig this model? i tried mixamo and accuRig but it just gets destroyed no matter how i arrange the joints 😅

glossy marsh
#

well

#

he got no spine

#

he must have been a game dev sitting on a chair all day

calm delta
#

lol

#

Yeah i dont think a humanoid auto rigger will work

stuck elm
calm delta
trim hatch
#

how can I go from one substate to another without having make n(states) transtions

#

say i have an idle substate with 4 animations

#

and a walking substate with 4 animations

#

i want the idle and walking substate to go to transition to a 3rd attack substate with 4 animations

#

do I have to make 8+ transitions telling each animation to go to the attack substate??

olive heart
#

I swear something is wrong with my animator

#

I need to do a call with someone to explain it visually because I just don’t understand

#

Scratch that don’t reply to it

fallow briar
#

Hi could anyone please tell me how i can put all my animation frames on the first guy i drew? So when i click on the arrow on the first frame all the other ones pop up.

agile solstice
#

You don't need a sprite sheet containing each frame - for each frame

fallow briar
#

ahh okay so i need to create a sprite sheet i think! thank you i am just very new to unity

agile solstice
fallow briar
#

yeah i want all the other ones to pop up when i click the arrow instead of them being in my character folder as individuals

rose osprey
#

anyone has FBX assets of hand poses for VR? oculus only provided the model with no animation

spark cave
#

So, I have a root motion animation of a "mantle", and the video shows it transitioning to the idle animation, however because of the root motion the transition is very strange after the mantling is completed. Anyone know what I should do here?

#

Also, I can't disable the root motion for the mantle because I need it for my climbing.

remote shoal
#

Now the entire crafting process is going to be an animation that plays until the object is entirely assembled, after which the animation stops and the character plays the idle animation or another pre-defined animation (like sitting down). 

The tricky thing is the location of the "building blocks" and the location of the crafting inside the perimeter will be different every time, and the terrain will contain deformities such as maybe the crafting takes place on a hill or it is done in an enclosed place such as a cave so there is not that much place to move around but the character has to move plus the animation needs to be able to be stopped at any moment (if the player gets attacked or if the player simply cancels the crafting process) but also it needs to be able to be resumed for where it left of, even if the "building blocks" places were switched in the process. 

How should I do the animation in this situation so that the character is able to pick the objects from any location inside the crafting perimeter and will assemble them to the assembly location inside the perimeter based on the initial shape of whatever object it's being assembled, (in this case a minecart). ? 

Will code and procedural animation need to be involved here and if so is there any documentation/tutorial name for this type of pre-programmed/pre-defined animation that is able to adapt to different situations etc.) ? Does this type of system have a name so that I can do some research on it ? ```
vale temple
#

How many bones are too many? I'm making a mechanical model in blender thats using an armature to simplify component movement.. but there are a lot of parts

#

I have this rig I'm planning to duplicate 7 more times as one piece

hybrid tinsel
#

If it gets past a certain point it might be worth looking into vat animation or something.

#

But you'll probably have to test to see

agile solstice
# vale temple How many bones are too many? I'm making a mechanical model in blender thats usin...

Skinned meshes can get expensive, but if you don't need armature deformation you won't need them be a single mesh
Instead separate meshes parented to individual bones
Though since Blender doesn't allow parenting to bones (except with constraints) and Unity/FBX doesn't support non-armature animation, you'd have to set them up with constraints and after import replicate the relationships by parenting objects in the hierarchy

#

It might not be worth going through that if having them as a skinned mesh isn't too expensive

vale temple
#

interesting! I appreciate it!

olive cosmos
#

Not sure if this is the right channel, Animation/Timeline, FBX/Import...

I've got an FBX model and separate FBX animation files intended to be applied to the model. The prefab comes with an anim controller, that plays the animations in Play mode; however, I can't figure out how to apply animations in the Timeline for scrubbing.

I'm working on a cinematic/timing thing, and I need to be able to scrub in the Timeline - not just "animate when in Play mode".
Any suggestions on either merging the fbx files, or otherwise how to get the Timeline to animate the mesh? Drag-dropping just doesn't seem to work like other FBX files that have the animation as part of it do.

vale temple
agile solstice
#

But also regardless of that setting, I believe you either need to set object bounds beforehand or have them calculated at runtime for it to cull properly

#

With non-deformed meshes the engine can make approximations for calculating the bounds, but if individual vertices can go wandering it would make that harder

vale temple
grave pumice
#

I'm having an issue with my animation rig. I am using the multi-position constraint to bind my weapon to the left clavicle of my synty model. But, the weapon isn't moving, and seems static. Has anyone ran into this issue?

agile solstice
# vale temple object bounds is a new term for me - could you share some info on that?

Bounding boxes are coordinates that are guaranteed to contain the object between them
So it's cheaper to know where things approximately are and are not, since you need to do math on just two points in space, rather than every vertex
The engine uses them for many things, mainly rendering and physics to figure out when objects are close to intersecting to start making more accurate calculations
Most of it is handled automatically but with geometry that changes shape at runtime, like skinned meshes and particle systems there may be complexities
https://docs.unity3d.com/ScriptReference/Renderer-bounds.html

olive cosmos
# olive cosmos Not sure if this is the right channel, Animation/Timeline, FBX/Import... I've g...

Found an answer to my own question, requires blender - but got it working following this:
https://blender.stackexchange.com/questions/188309/merge-two-or-more-blender-files-with-the-same-model-but-with-different-animation

Was able to merge the mesh/animation FBX files into one single FBX file, which that combined file behaves as I needed in Timeline.

olive cosmos
#

Or not - It worked for one model, but when I went to do the same to another (different fbx files, model, animations) - the rig doesn't seem attached to the mesh in blender, so when I try to combine the animations nothing happens.

So I'm still back to square one:
How to get Timeline to show animations when scrubbing in Editor, when the animations are different files than the mesh?

olive cosmos
vale temple
#

@agile solstice made something to test! we'll see how this works in unity lol

stuck elm
stuck elm
trim hatch
#

how can I go from one substate to another without having make n(states) transtions
say i have an idle substate with 4 animations
and a walking substate with 4 animations
i want the idle and walking substate to go to transition to a 3rd attack substate with 4 animations
do I have to make 8+ transitions telling each animation to go to the attack substate??

versed haven
#

Hello, I am making a first person survival game and I have a character that can wear armor and use tools, whats the proper way of animating everything, like if i want animation for weapon reload, that includes animation of the weapon and the hands, do I make the animations together?

olive cosmos
# stuck elm You can also have animations from one FBX file appended to another by using a sp...

Hmm, the asset already has the animation files with @ just like you said. [I didn't know that was a naming convention; neat, thank you] But the model FBX was named different. - I just renamed the model FBX to be inline with the model@animation files already present - but I'm not seeing the animations showing up in the model-fbx.

Is there something else I need to do, to get it setup?

green kite
#

is there a way to scale up a state in an animation controller

#

or do I have to manually scale the images

#

its also a seperate animation so I could do that

stuck elm
#

Right, like that 😄

hybrid tinsel
green kite
#

I meant scale up the animation but I used transform.localScale = new Vector3(2,2,2);

#

works just fine

olive cosmos
# hybrid tinsel

Yeah, far as I can tell the naming convention is there. I didn't make the files, part of an asset bundle. I copied/renamed the 'SK_GreateHornedOwl2Sided' to 'GreatHornedOwl' to try and make the auto@animation work, but I feel I'm missing something.
Still just has the 'Take 001' that's on the base/mesh (un-animated) fbx file.

hybrid tinsel
#

And they aren't appended when you unfold the greathornedowl file?

olive cosmos
#

Oh, sorry; I should've had that expanded in the screenshot. But, no, just Take001 is there.

#

I've tried reimport, too; on a whim, to no avail.

hybrid tinsel
#

Hm, weird.

#

I've only used that feature once or twice but it just seemed to work.

olive cosmos
#

Yeah, not sure; maybe it's because the files were already there. I might try renaming before importing entirely. I have a workaround in the interim at least. Good to know about that feature to keep in mind, though; thank you.

tranquil sierra
#

Does anyone have advice for how I could make this run cycle look better?

hybrid tinsel
#

Head motion.

tranquil sierra
#

I tried to adjust the cape flow too

hybrid tinsel
#

Much better. I'd probably remove the front pixel that flashes occasionally, looks more like a bouncing erection than a foot.

#

Maybe make the pointy back of the hood bounce a bit, not as much as the cape but a tiny bit.

tranquil sierra
#

I see I see

#

Very insightful

hybrid tinsel
#

Hehe, it feels silly pointing something like that out but you know some players will think that

tranquil sierra
#

Ikr thanks for pointing it out cuz it kinda does

#

My only problem is it looks more like he's skipping when I do that

stuck elm
#

Instead of the head bobbing in single frames, maybe have it three up three down? Would give you extra frames to animate the back of the hood and make it less 'shaky'

hybrid tinsel
#

Animate the eyes to get a bit smaller on the 'impact' frame?

gaunt sparrow
#

so i was just following the brackeys video when i tried to copy the player and paste it into another lvl, everything was find until i wanted to jump, it did jump but the animation only played for like a frame, and went to idle again
its fine on the scene that i copied from but its not in the other one, heres a vid of the weird bug

potent imp
#

oh i dislike unity spider web lol

#

i just like play animation clip

gaunt sparrow
gaunt sparrow
vale temple
agile solstice
vale temple
#

Would be weird to have multiple animations but technically that works!

agile solstice
#

As a bonus their motion can be de-synced at will

#

That sounds pretty fun actually

indigo bay
#

Hello! I'm not sure if this is the correct thread to ask this in but I am struggling to figure out what constraints I should use on my rig (Inverse Kinematics)

So, what I have now is an armature with the root bone in the middle, and spreading out to 8 other bones which contain the simple humanoid structure. What I want is, based on the rotation of the root bone, I want the humanoids height to change [ex. Crouch down when the root bone is titled towards them etc.. ]. I was able to achieve this in blender using basic IK but I can't seem to achieve this is Unity.

So, what would be the best way to approach this problem? Using multiple rig components with multiple constraints? Joints?

Any help would be appreciated, and sorry if I have posted this in the wrong thread! Thank you.

This is ideally what I want to achieve in Unity: https://www.youtube.com/watch?v=mFVb64OS9jE&ab_channel=Earthpix

vale temple
small fox
#

Hello can someone help me

uncut salmon
compact socket
#

hello guys I'm trying to learn how to animate a 3d model for a project I'm working on but I'm having a little bit of trouble what I think is an the avatar mask component not working. I have some layers in my animation that should be overwriting certain bones, but they are just not animating at all. I have confirmed that any input information is being received and processed by the animator but I'm not sure what to do about this since its unfamiliar territory for me. anyone got any insights on what I could be doing wrong?

merry edge
#

I'm an animation noob. I want an animation where my character runs forward, makes an attack animation, then runs back to where they started (classic JRPG style attack). I use a "MeleeAttack" trigger/condition to control the transition into the "Forward Run" state from the Idle state.

I also have code on my player that checks for the same "MeleeAttack" trigger and moves the player towards the target. This works (ie, animator.GetBool("MeleeAttack") returns true); however, the animation itself doesn't trigger for several more seconds - instead of "running forward" the player slides forward, then after several seconds the enter into the Forward Run and then Punch animations. Why isn't the player actually doing the run animation as soon as the trigger evaluates to true?

#

Additionally, the state never transitions on the Animator Graph - even though the animations actually play

compact socket
#

have you selected the item that holds the animator in your hierarchy?

#

that should let you see the graph in real time if I'm not mistaken.

merry edge
compact socket
#

could exit time be causing the delay?

#

your idle is quite long and if it needs to finish that before transitioning that could cause some issues

merry edge
#

I turned off exit time on the transition; and looping looping on the run animation on - the player instantly goes into the running motion but now the player transform stays in place. If I turn Exit Time back on, it moves again. I determine if I should move the player in an update loop by checking the "MeleeAttack" trigger - does this only evaluate to true the frame it flips, or does it stay true?

compact socket
#

I'm pretty sure an animator parameter stays the same until you change it again.

merry edge
#

OK, that's what I expect. I wonder why "hasExitTime" is causing animator.GetBool("MeleeAttack") to only evaluate to true once?

#

but rewinding from all that - how would you set up a simple "run to something, attack it, then run back" animation? Am I on the right track at all?

compact socket
#

i personally would not have the movement rely on the parameters of an animator.

merry edge
#

how would you work around that, especially if I want to wait until after the attack animation to begin retreating?

compact socket
#

I would most likely use events to trigger and stop the movement while letting the animation do its thing, im by no means an expert though.

#

you could have an event that checks if your player is at the desired location and sets the animation to attack if it is.

#

then at the end of the attack animation, you can have an event that sets a parameter that triggers retreat animation to true.

#

this maybe easier if you can get on a call and share your screen

merry edge
#

If you have time, yeah. gimme a min?

compact socket
#

anyone here know anything about avatar masks?

mellow oar
#

Hi guys! I tried to import my psb file in unity and this happened. Can anyone help me please?

vale temple
#

@stuck elm @agile solstice got something cool working in unity now! Appreciate your help! I did end up making it so it's just one section that repeated in unity.

stuck elm
#

Very cool looking!

hybrid tinsel
hybrid tinsel
hybrid tinsel
hybrid tinsel
compact socket
# hybrid tinsel Are your layers in the right order? The mask won't matter if the layer is being ...

I'm trying to animate a hand for a vr player, meaning I need some fingers to move separately. I currently have 2 layers each with their own mask attached and each mask has the bones for a different set of fingers so they shouldn't clash as far as I can tell. its just that when I have the mask enabled on a layer, the entire animation doesn't play instead of it filtering out the fingers not selected by the mask. I'm not sure about order since neither of them is working.

compact socket
#

without the masks the animation plays in its entirety so I'm pretty sure the mask is somehow not interacting with the bones properly or something.

mellow oar
compact socket
#

nevermind, i found an easier way without masks, just had to make some more animations

grave pumice
#

Can someone explain to me why when I use a multi-aim constraint, on a gameobject, it resets the pivot location from where it was set to the center point?

gray rune
#

If I had a set of animations that I wanted to randomly play after the player has gone idle for a given time, would it be better to use Triggers, or a float and use a time for the float?

#

My gut is telling me a trigger, and handle the conditions via script but idk

stuck elm
#

Probably a script, since you'll want it to be tied into your input system anyway.

barren zodiac
#

We've just upgraded to Unity 2022, and we're noticing the Animator.deltaPosition is no longer returning the same value as in our prior Unity version 2020. Does anyone have any insight into this? We've been searching around, but haven't been able to locate any concrete information

agile solstice
#

What even is this?

hybrid tinsel
gaunt sparrow
gaunt sparrow
hybrid tinsel
#

You don't need to ping me quite so many times. Especially since you literally didn't even answer my question.

barren zodiac
hybrid tinsel
#

I can't test that at the moment, but I have briefly used 2022 and didn't see any unexpected behavior with my root motion controller. Do your other layers have root enabled in their layer mask?

smoky coral
hybrid tinsel
long falcon
#

hello so i just bough an asset and i want to play with it, one thing for sure is that i know this Animation can use AnnimatorOverrideController...

so i just set up a simple animation where if character moving "moveFWD" (from parameter) it will be change the animation from IdleBattle to RunFWD. using animationOverrideController, but it doesn't works the animation still keep playing from IdleBattle > ShootShotgun > Reloading and so on.

is this related to Transition? should i make a Transition from IdleBattle into RunFWD? i confuse. with this UnityChanHuh .

hybrid tinsel
hybrid tinsel
long falcon
merry edge
#

What is the workflow to store animations on Items - does each item have it's own instance of an Animation Controller asset and that you set the subjects animation controller to in real time?

barren zodiac
hybrid tinsel
#

That looks like it might be worth submitting a bug report on

echo dragon
#

having this weird bug where the slimes get really flat during their jump animation in build mode, but when I look at their jump animation itself it is working fine. any idea?

agile solstice
glass cairn
#

Is it possible to set the offset of a Multi-Aim-Constraint with script? I cant find anything about it.

gaunt sparrow
agile solstice
gaunt sparrow
#

idk how or why

#

it was working a min ago

#

now even on the first scene its broken

agile solstice
gaunt sparrow
agile solstice
gaunt sparrow
gaunt sparrow
agile solstice
# gaunt sparrow if you cant help why do you even answer

You keep repeating the question, so I'm trying to help you understand why you aren't getting many answers
The problem is that we have literally no way of knowing how your project is different from the tutorial, or from the scenes are different from each other
We can only randomly guess what the problem might be, but if your only reply to offered solution is "didn't work", it's discouraging since you provide no details so we don't know if you even did it properly
If you followed a tutorial and it worked, and then it suddenly didn't, the only logical way forward is to compare the two, or retrace your steps and do the tutorial again so it works again

gaunt sparrow
agile solstice
gaunt sparrow
#

it worked on the scene he made but not any other scene that i make

#

even tho i copied it and used prefab too

#

nothing worked

agile solstice
#

Right, so the problem is something in your new scene

gaunt sparrow
#

i manually checked everything

agile solstice
#

Maybe don't copy it, instead save the first scene with another name and then just modify the existing gameobjects to a new arrangement

gaunt sparrow
#

that would just make it so i can make one scene

agile solstice
#

I think you misunderstand
If you click File>Save As> and save with a new name, it'll create a new scene with your changes
Like copying everything but no risk of losing references or anything

gaunt sparrow
agile solstice
uncut salmon
gaunt sparrow
agile solstice
uncut salmon
#

Because you crossposted. In the future, just ask in one place.

gaunt sparrow
twin musk
#

Can someone please help me? I'm having a problem and if we could call so I can screenshare because it's a bit much to explain in text :S

wary rain
#

player movement animation and shooting animation at a same time

#

any one ?

#

i use 2 layer in animator window and layer mask (legs and ground) are unchecked but unfortunately the shooting animation call in update function so the walking animation not be set

agile solstice
twin musk
robust perch
#

why doesn't unity let me edit root t.z in the animation window?

#

I can't input anything there, even when I add keyframes

nocturne storm
#

Why when I import animation from blender into unity, the animation resets the position of the gameObject?

#

Like If I disable the animator, the enemy moves towards player normally, but if I enable it, the enemy stays in one same spot but the walking animation works

agile solstice
nocturne storm
#

so then I need a parent

agile solstice
#

Yes

nocturne storm
#

and I would put the animator on the parent?

agile solstice
nocturne storm
#

oooh okay

#

so if I had a enemyBehavior script, I would put it on the parent not the child, and put the animator on the child

#

got it

#

What about box colliders or rigidbodies

#

would it be fine either way or would I need to put it on parent

echo dragon
#

I put the colliders on the parent of the game object

echo dragon
agile solstice
echo dragon
#

ah so I shouldnt have my colliders on the parent

agile solstice
echo dragon
merry edge
#

Having an issue whereby my animation controllers don't display in the animator window?

merry edge
#

I kind of suspect this is because of line 33 here? Restarting Unity actually clears the issue (the animation sets actually show up again) but rerunning the code reintroduces the issue [Fixed]

tepid sparrow
#

Hey everyone! Im having some issues while creating bones on my sprite, is there a reason that it gets messed up when I create the bones? It looks fine in the skinning editor, is there anything Im missing? I attached a gif to show the problem, thanks to anyone helping ^^

gleaming lichen
#

why does my animation snap right to a blend tree(no transition) even if it has transition time?

mellow grotto
#

why arent my positions showing up from my blender project?

#

it just shows one clip that is scene

#

but i have like four

agile solstice
uncut lagoon
#

Hey! what's up? I'm a 3D sculptor and animator focused on videogames. Any experience artist in this area that could give me some tips? I make High poly>low poly characters and wanted to know some things

agile solstice
hybrid tinsel
tepid sparrow
#

Or is there something Im missing?

mellow grotto
#

what other export settings need changing

#

i just have all the default settings rn except it is on cycles rendering engine

mellow grotto
tepid sparrow
hybrid tinsel
#

And you're sure all vertices have weights on them?

#

As a side note, you'll probably get better deformation AND better weighting if you change your mesh a bit, probably adding a vertex at each joint at least

tepid sparrow
#

Isn't that how i do it ? I searched online and couldn't see anything about normalizing bones

hybrid tinsel
tepid sparrow
#

Oh! How do I check that then?

tepid sparrow
plain pumice
#

why cant i move these

#

i cant even delete the arrow

#

everytime i make a transition i cant move the boxes anymore

agile solstice
plain pumice
#

so its a bug

plain pumice
#

do anyone has this issue using the latest updates

#

because im using old update

agile solstice
plain pumice
#

it stuck

#

i have a script that turns on the menu by pressing esc key, and when i try to press the button it should play an animation of it going down to the top interface where there is a camera screen

#

it works however when i turn the menu gameobject on

#

i might need to redo the way i bring up the menu

velvet thistle
#

Hello everyone, I'm having some trouble with applying the wave modifier in Blender and importing the resulting animation into Unity. I've tried baking the animation, but each time I apply the wave modifier, I still lose the animation. I then tried importing the animation into Unity, but it's not working as expected. Has anyone else had this issue before, and do you have any suggestions for how to solve it? Thank you in advance for your help.

agile solstice
# plain pumice

If my memory serves, 2020.3.31 specifically had severe Animator UI bugs

plain pumice
#

LOL

#

Im so doggu doggu

#

SO BASSICLY THIS ISSUE IM HAVING Is THE ENGINE BUG

agile solstice
plain pumice
#

yeah it just jams my ui

#

i think about it

agile solstice
#

Not much point being on an old LTS behind multiple rounds of patches anyhow

plain pumice
#

I just dint wanna update it

#

since im kinda in a deadline crisis rn

agile solstice
#

If you update the project's editor to a patched 2020.3. with a back-up, that's unlikely to risk your schedule or workflow

#

If something breaks, you can just keep working on the backup

plain pumice
#

i dont have the experiece and or time risk it

#

I dont trust this engine

agile solstice
#

You don't really have to "trust" it if you have a backup
Nor do you need experience to download an editor

#

Patch version updates are unlikely to break anything, but it's a process that can be messed up so playing it safe as possible can be a good choice

plain pumice
#

good

#

im ganna be super ultra sus about it

agile solstice
#

Like, if you accidentally install next year's version instead
Or delete the project instead of backing it up
Those are the big risks

hybrid tinsel
velvet thistle
hybrid tinsel
unborn tusk
#

Can anyone please help with this? I've been stuck with this for ages. I'm following a tutorial on a full body character (with animations), though my animations won't work. https://www.youtube.com/watch?v=xWHsS7ju3m8&list=WL&index=73
I'm 99% sure my code is the same, though the character isnt the same. I think it has to do with the rigging, but I'm not sure how to change it and make it work. I used the T-Pose animation as avatar for all the animations, and applied all the other options as shown in the video. My video shows my character when pressing WASD
All the animations come from mixamo, and I'm using the new input system to make this. https://pastebin.com/nicY8kF3 https://pastebin.com/UnDsimtj

bronze python
#

Hey does anyone know if theres a way to Have 1 state in an animator layer that doesnt inherit the avatar mask of the layer?

teal frigate
#

Anyone have experience with https://assetstore.unity.com/packages/3d/animations/basic-motions-157744 ? I've recently picked it up but something is wrong during all animations. When I'm moving at the positive Z axis everything works correctly but after I turn the character gets faster and moves in the wrong direction. This problem doesn't occur with mixamo animations. Trying to figure out what's causing this. I have included a video for you to better understand the problem. Notice after I turn 90 degrees right, when moving the character slides to left with faster speed. With 180 degrees, it moves even faster.

teal frigate
unborn tusk
#

I tried putting an avatar on but it didnt change anything afaik

teal frigate
unborn tusk
#

The animations are humanoid, and I selected 'custom avatar' (or whatever it's called) and used the T-pose avatar

teal frigate
#

I'm like 90% positive it doesn't work because of the avatar but not really sure why it didn't work when you assign an avatar though

unborn tusk
#

I applied the avatar, but now I can actually walk left right back etc. First I could only walk forward with WASD

#

but still no animations

#

But I do see red gizmos that show an animation I think

#

Yeah Im quite sure they show the animation

#

I think it has to do with how the body is setup @teal frigate

#

I got the body from fuse

#

But it isnt connected to the skeleton whatsoever

teal frigate
#

but the skeleton is from mixamo, it should be rigged already

unborn tusk
#

So the "skin" isnt moving

#

but the skeleton is

teal frigate
#

oh I get what u mean

unborn tusk
#

I think I need to put the skin from fuse to mixamo, then export it from mixamo with skin

teal frigate
#

yeah that might be the issue but I don't know what to do in this situation

unborn tusk
#

I tried that, but the option 'export to mixamo' that fuse gives, doesnt work for me

unborn tusk
unborn tusk
teal frigate
#

Nice

covert hull
#

Is it possible to REMAP? or change the heiarchy of an imported animation from blender? For example, if i have a model imported as Model.fbx It has an animator on it from Unity (from the import) If i make a Empty Game Object and I nest my model in it, and i want the animator on the Empty Game Object, not my imported model, is there a way to get those animations to shift a heiarchy? Would I copy those animations and make new ones based on the copies? I've always been stuck on this concept and wasn't sure how to gain access to blender animations but be able to have the animator much higher up so that I can add other animations or other parts of an animation using Unity game objects that aren't previousy in my blender animations

#

So my new Prefab would be

WrapperGameObject <--- Would like Animator here, but the animations still work on Model.fbx (imported from blender)
--- Another (GameObject)
--- --- Model.fbx (imported from blender) <--- Animator

covert hull
#

if i re hierarchy, then i get (Missing)

covert hull
#

that does work, but i feel like I am editing a quake .ini back in the 90's any suggestions on a better workflow, thanks!

hybrid tinsel
#

Or, if all your models have the same remapping, you can make an asset processer to do it automatically on import

covert hull
#

some of the things im not sure about is.. 1) am i making fake heiarchy in blender, based on what I want in unity? 2) sometimes I don't know the heiarchy yet until later on, so i can't exactly pre-plan some things, like I am making a door lock. i model it in blender, but in Unity its multiple layers of heiarchy with other game objects, scripts to handle lights, particle system etc.. and sometiomes I want to animate that stuff, so I want to mix and match some of the blender stuff with some custom unity stuff..

hybrid tinsel
#

I am not a blender user myself but I know that there are preferred ways to set up the export to minimize the differences

eager geyser
#

hi I want to make pixel animations for unity 2d

#

is there a free app?

verbal fulcrum
#

Hey guys, I am using animations for a project that I did not prepare myself and currently find myself stuck. I am using a timeline and plugging in the animations in sequence. However. there is an idle animation that I need to work at its current location and not move to its origin whenever it is triggered in the timeline. Any tips?

pure mirage
#

Does anyone know a tutorial for me to implement hand drawn animation(for running) into my project

#

2d

glass cairn
#

Does anyone know how i can set this variable with a script? Because i dont know why but every Animation needs a different offset to fit

hybrid tinsel
#

Typically, if you are going in order you'll want to match to previous

verbal fulcrum
# hybrid tinsel

For some odd reason Match Offsets to Next or Previous is not working at all. There is no change in the idle jumping back to root

sage prairie
#

I have been told my game could use some more "bounce". My project is already using DOTween, but someone recommended to me that LeanTween would be good for this and showed me a decent looking tutorial

1)is it bad form to import both DOTween and LeanTween into a project when they really do the same thing
2) does anyone have thoughts as to which would be better (or potentially a 3rd option) for adding some 'bounce' to a game?

If you wanna see it (this version only works in Full HD 1920 * 1080)
https://galahadgaming.com/Games/Builds/

fast swan
prisma bloom
#

Grafx2 is actually the best one

#

but you can use whatever you want

#

it looks wierd somehow

bronze iron
#

guys how to fix this ?

hybrid tinsel
# bronze iron guys how to fix this ?

That is a warning, not an error- so if it still looks okay you can ignore it. If it affects your animation too much, either remove translation keyframes from your animation before importing, or use generic animation instead of humanoid.

bronze iron
hybrid tinsel
bronze iron
#

its somehow work better with layers

flint estuary
#

I made the 1st character for my 2d Idle game, how does it look

#

Animation speeds way faster than it should be but I configure it in unity

limpid shard
#

Conceptual question. If we want to prevent foot sliding in npc. Do we match their agent speed with the animation or do we use root motion from the animation to drive the agent?

agile solstice
mellow oar
#

Hello! Anyone can help me how to fix this one please?

hybrid tinsel
hybrid tinsel
wicked tiger
#

Not sure if there is a proper location where I can post recruitment but I'm currently working on a 2D pixel game jam, and is in need of 2D artist and people who can implement their animations in unity.

DMs are open and I can share details there.

hybrid tinsel
nocturne forge
#

i've made an animation, how do i make it so an object loops it constantly?

brisk flax
#

Hello, I have these sprites, I would like to know how to make the sprites cycle repeatedly

hybrid tinsel
mellow oar
brisk flax
#

if someone could maybe help me by sending me a video

quasi nova
#

i feel like this has been asked before but I don't know what to search, is there a way in the editor to use an animation property for the global position of a transform instead of the local position? So if an animation moves a transform up, then rotating the parent transform wont affect the child transform moving up

#

normally i would just separate the transform but some animations on that transform i want to rotate, while other animations i just want bobbing up and down regardless of the rotation

hybrid tinsel
quasi nova
#

ahh nice trick, thanks

steep gorge
#

Is this the phase 2 of t-posing? I was just hoping to move the model into a basic starting pose but it balls up like this automatically

steep gorge
raw comet
#

I'm not sure if I'm just dumb or blind but I can't find a way to not make my animation play automatically when the game starts?

trim hatch
#

Check the animator controller window

raw comet
trim hatch
#

Nope

#

Read the unity docs

raw comet
#

"Read the unity docs"

hey can you read all of the united states legal codes and tell me where it says I can't steal a car

trim hatch
#

Just read the section on animation

agile solstice
crisp jungle
#

I want this:

#

in here:

#

Otherwise Attack2 can't be found by Animator.Play("Attack2")

#

Anyone know how?

#

Maybe this is related, but when I add a state to my Animator, nothing shows up

uncut salmon
#

Those clips are whatever are in your animator on that object.

crisp jungle
#

(I play all animations using Animator.Play, so I haven't paid any attention to the Animator states)

crisp jungle
uncut salmon
#

Drag it into your animator

crisp jungle
#

Hm, so that did add it:

#

But now I get this error

#

on start

#

And also, still, nothing is visible in the Animator view

#

don't know if it's supposed to be that way

#

Yeah now different animations are breaking

#

wtf...

#

I hate the animator

candid night
#

hey i got an animations that make my character run and when it plays another clip it goes goes back to the where the character started running from how can i make it so it play the other animation where he stopped running

fathom sandal
#

hey question, this is another layer thath "addative" that i will use when trigger attack annimations

#

but since its addative it goes to the idlecombat looping all the time

#

how do i workaround that ? or is there a "null" state or something

frosty mesa
agile solstice
candid night
frosty mesa
#

But the reason might be because of "Root Motion"

#

Look into Root Motion and that might help

candid night
#

its no difference if i check root motion in animator

frosty mesa
candid night
#

by what i know i think the motion is in the animation

raw comet
#

this is what it looks like rn and it plays on start

agile solstice
raw comet
#

how do I give the entry state "no motion"

#

it has no options

#

how do you know if a state has "motion"

agile solstice
#

Make a new animation clip in the Animation window for the gameobject with the Animator
Since you don't want it to do anything you won't need to keyframe anything

raw comet
#

ooooohhhh

agile solstice
#

Then it should appear as another state in that Animator, which you can right click and set as default state
You'll then need a transition between them and a condition to trigger the transition

open hornet
#

Anyone have advice on how to go about this movement with Unit's Animation Rig? I need to have his hands and feet working on IK, which I've figured out, but I'm not sure what to use to manipulate the torso with this same effect.

hybrid tinsel
# candid night

Enable root motion, and make sure that the correct gameobject in the hierarchy is set as the root node.

hybrid tinsel
hybrid tinsel
thorn falcon
#

are layers used to combine animations do they serve any other purpose than this how often are they used in 2d games ?

thorn falcon
#

how do I make the animation in the animator not loop ?

#

please help

uncut salmon
#

Turn off looping on the actual animation asset.

thorn falcon
#

ping me

uncut salmon
#

I said animation

thorn falcon
uncut salmon
#

Where did you look?

thorn falcon
#

in the animation

uncut salmon
#

Select your animation in your project file list, and in the inspector, turn off loop.

thorn falcon
#

i dont see anything related to it in the animation

deft arrow
#

How can I get these control points on my screen?

agile solstice
agile solstice
deft arrow
#

I did that

agile solstice
#

Assuming you did that correctly and you have gizmo visibility on, then it should be good to go
If it doesn't show up immediately you may need to select a different object or switch windows or something
I think it was a bit bumpy like that in recent versions

empty whale
#

Why does rigidbody conflict with animation? I mean player starts to float

agile solstice
#

For this reason you'll normally want to place the animated mesh renderer(s) as the rigidbody gameobject's child gameobjects, or always make sure the rigidbody is "kinematic" when it's being controlled by animation

empty whale
#

It is interesting by the way
While searching help to make player movement you wont find any thing how to do it with animations hah

hybrid tinsel
hybrid tinsel
ebon holly
#

err... maybe the kings are a little off, too.

#

Ah, i think this has to do with the pivot point of my sprites, now that i look at it closer.

steep gorge
#

What are q and t properties, like left hand q? I found the third different one was range of motion

crystal plover
#

hi everyone

#
using UnityEngine;

public class Animplayer : MonoBehaviour
{
    public Animator Anmtr;
    void Update()
    {
        if (Input.GetMouseButtonDown(0))
        {
            Debug.Log("Recoil Intiated");
            Anmtr.Play("Animation");
        }

    }
}
#

this script when i play my game just start playing the animation by it self

#

no input needed

#

it just loop's and loop's

trim hatch
#

Thats expected

#

You have to open the animator controller and change the default transition

sand fern
#

Hi, i'm trying to make procedural animations, using Animation Rigging i can do very basic linear Vector3 interpolation between poses. The Leg hint and leg foot position seem to be ok-ish doing that. But the foot rotation is all over the place. I guess i should apply some constraint to them but haven't figured it out yet. Anyone care to give some tips?

#

Note: i used EulerAngle to interpolate, instead of Quaternion.

thorn falcon
#

how does one check layers in 2d games animation in unity ?

gray rune
#

So,does someone have insight or resources on creating animations in blender and having the ability to mix them? Like, if I have a walking animations, and a hand waving animation, I could get them to both play at the same time in Unity

clever frigate
#

Guys hello

#

how do I fix this error, I've combed the entire internet, I want to move the mesh to the stage

#

?

#

?

gray rune
hybrid tinsel
lavish cedar
#

For Unity2D, I have a state machine set up to change the appearance of a panel from red to blue depending on player ownership of that panel. However, the panel doesn't seem to change color immediately. I have my transitions set up so that the box "has exit time" is unchecked for every transition. Is there any other common mistake I could be making that is causing the animations to not interrupt each other?

#

Nvm, I figured it out. There's a fixed duration for transitions too, so even though its interrupting, it still takes a set amount of time to complete the transition.

#

Once I set those to 0, the problem went away.

candid vessel
#

hi im trying to make a shader for 2d grass and for some reason some art will be affected correctly and some art will be affected diffrently can someone help me understand what the issue is? (the pixel art grass is affected correctly and the Forest Sprite Pack art is just being moved)

hybrid tinsel
hybrid tinsel
ornate bridge
#

I moved my animation from the logic to the visual gameobject but now my animation don't play

#

And on animator my character dessapear ? why

agile solstice
#

@ornate bridge In my experience an animation can make a character disappear only when the animation scale is way off
If you watch the animator play through the scene view, does the character appear big, small or is it just gone entirely

ornate bridge
#

No he dessapear

#

on my player i have it

#

but my player have animator on logic and not the visual GO.

#

So look like i can't put animator on visual GO.

agile solstice
#

What does "visual" GO mean in this context

ornate bridge
#

visual is root

#

logic is main where i have al lscript

#

you have to place animator component on a special GO?

agile solstice
#

You'll want to have the Animation window, Animator window and Scene window visible at the same time for previewing animations on the scene character
Otherwise you'll be flying blind

#

+the Hierarchy if you're also changing the location of the Animator

#

The Animation window will have warnings if the property paths do not match, and the Animator will show active states and transitions during play mode and when previewing animations

sand shale
#

Where can I learn how to get animations from Blender to work in Unity? Everything I find seems focused on skeletal animations and I just have a few very simple animations that don't have skeletons

faint bane
#

Hey guys, Im pretty new to Unity2D, and im working on setting up animations for this asset character. I can get the idle animation to play using the animator, but I cant get the walk animation transition to go from idle to walk once it reaches a certain speed. Any idea what I can do?

agile solstice
#

How I export non-skeletal animations is first convert them to skeletal by first making an armature with bones that represent the motion, then connect the parts to bones using "Child Of" constraints, so that skinned mesh isn't required

#

Constraints can't be exported, but as long as the object and skeleton positions match, you can parent each object to their bone in Unity

candid vessel
tawny hill
#

Good day!
I am trying to work an animation into my project:
I have the character sprite doing its sprite things. Movement, jumps, and whatnot.
All these are animated like I want them to.
Now, I have two more pieces to add, a jumping FX and a touching ground FX: When the character jumps or touches the ground, I want to add a small cloud of dust lifting from the ground or pushing away from the characters' feet accordingly.
How can I add the separate FX to the animation so that both play at the same time upon jump and touching ground?

static sage
static sage
tawny hill
#

Hm, thank you, I'll try and work this out.

hybrid tinsel
# candid vessel do you know a way to make the effect without using uv's

You'll need some way of converting postion into a ramp the shader can use- world position, object position, transformed uvs, a controll texture, vertex colors... there's no single 'right answer' but the easiest is probably to write a script that reads the rect information from your sprite and applies it as an offset to yout shader.

covert cipher
#

does anyone know how I would go about making a child object's animation change without changing any of the other animations attached to that object?

hybrid tinsel
#

You can use a layer mask to only affect that object, or you could give the child its own animator

candid vessel
trim hatch
#

you would have to do some math with the texel size property

candid vessel
spiral mica
#

So I’m trying to import this guy to VRChat/Bonelab. The mangled Unity armature and how it’s supposed to look in Blender is shown

Is there a way to fix it in Unity?

twin musk
#

I'm having a problem with Humanoid rigs. Whenever I change to that my animation seems to get a broken hip. In Maya the animation is fine and baked it into the rig. But in Unity it seems to be broken the moment it goes Humanoid. I checked the configuration of the avatar, hips are assigned.
But I also have a pelvis bone underneat the hip which can actually rotate the pelvis + legs, while the hip bone is basically controlling the entire body and is only child of Rootbone.
I'm afraid that any animation the pelvis has won't get transferred on the hip bone. But even changing the Hip in the config to Pelvis, won't change a thing.
HELP???

brazen mural
#

I'm having an issue with my 2d animation- the animation itself is bouncy and nice, but when i actually attach them to a player, it suddenly becomes stiff/tied to something else. how do i get it to keep its bouncy?

#

it feels like unity is anchoring the sprite and the animation transformations to something other than what it is set to

#

im not sure how to fix this

#

like it's disregarding my transforms and going to just the sprite order from my slice

trim hatch
#

You need to give the character a parent object that moves around instead of the character

#

What the animator does is edit the x y z values with the values that are in the key frames

oblique flare
#

Why is is when I use my reload animation it works, but when I try to reload again it dosent work

agile solstice
oblique flare
#

yeah that fixed it thanks

#

How do I make it so my mag only drops once my hand has reached it

agile solstice
oblique flare
#

I did 💀

#

But its slowly does it over time

agile solstice
#

Make it do it faster?
Perhaps you mean to control the mag with physics? I'm not sure

oblique flare
#

See the mag is already moving when the animation beings

#

begins*

#

Then the hand catches up with it

agile solstice
#

So the keyframe for its motion is too early, or it doesn't have a keyframe for the starting position

#

or both

#

I would probably use a parent constraint to animate switching of the mag's parent from the gun to the hand when grabbed
But you'll want to have a firm grasp of how keyframes work in the first place before attempting that

oblique flare
#

Anyone know why my weapon sway dosent work when I have an animation component on my gun

agile solstice
paper flax
#

Not sure this is the place i should ask for this, but is there any way to make an animated material?

#

By looking it up online, it only tells me how to animate models

#

Like, i have 32 different animation frames for water, how can i make it so that it cycles through the 32 frames

wide rapids
#

Hey there!
I am curious if there is any efficient worklow available to have dynamic face animations for audio files. I think about something quite flexible that adapts to any audio speech I associate it with. Can anyone drop me some keywords for Unity systems that can make this possible?

hybrid tinsel
#

You'd probably need to do some alterations to the rig outside of unity to make it compatible, or maybe combine the animation of the extra bones ising an asset preprocesser.

hybrid tinsel
paper flax
#

it doesnt really matter to me how i can do it as long as it works lol

hybrid tinsel
# paper flax it doesnt really matter to me how i can do it as long as it works lol
Unity Learn

Sprite Animations are animation clips that are created for 2D assets. There are various ways to create Sprite Animations. One way is to create them from a Sprite Sheet, a collection of Sprites arranged in a grid. The Sprites are then compiled into an Animation Clip that will play each Sprite in order to create the animation, much like a flipbook...

paper flax
#

😅

hybrid tinsel
#

You just said it was a plane. Sprites are planes(well, quads usually)

stoic flame
#

Hi everyone....

Is there today a solution to bake animations from IK rigged humanoids which are made with the Animation Rigging Package? For our project we need to keep the utilization at the lowest level.

gray rune
#

Is there a guide on how to animate interactions with other objects? Like If I want my player, interacting with a vending machine to have an animation. Or if I want them to sit on a chair, but I have hundreds of the same chair I want to have the ability to sit on?

agile solstice
# gray rune Is there a guide on how to animate interactions with other objects? Like If I wa...

I don't know of tutorials but there's two parts to it generally

  1. To make the character interact with the object you'd run checks to verify that they're in the correct relative position to stat the animation, and/or move them to the correct position
    For example to sit on a stool the character could initiate the animation from any direction, but would have to be at a certain distance to it
#
  1. To make the objects respond to the interaction, you'd either trigger a corresponding animation, or script the character to influence the object directly, or let the character take control of the object's IK targets or constraints
#

Creativity is pretty much the limit how to achieve and combine those

#

Many games for example let furniture prefabs define specific animation start points with transforms and when interacting with the furniture while close enough to the start point, the char would move to it and start the animation

gray rune
#

See the last solution is what I was thinking about doing but wasn't too sure if there was a better way

agile solstice
#

Better is subjective

gray rune
#

Except I would just keep the animations as part of the character and not the furniture. But keep the transforms and information on where the animation can start from on each object.

#

The real question is how do I accomplish the start and end point

#

points

#

Emptys in blender? Emptry's in Unity?

agile solstice
#

If the objects need to move, they'd have their own animations that'd sync with the character interaction

agile solstice
gray rune
#

Do they work if I transfer them?

#

Or import them with the object rather

agile solstice
#

Sure if you include empties in export

gray rune
#

Nice

#

Okay I didn't know that thank you

agile solstice
#

If I have like, a control panel with levers, and I know the character will always pull the levers in the same order, it's enough to have one clip for both and start them at the same time

#

If the order of the lever pulls can vary per character, I'd have a separate clip for each pull on the control panel and have the character's animation trigger the corresponding pull animations on the panel, using animation events or interfaces or whatever

gray rune
#

is there a way to make sure animations are synced?

#

Or is that just some code I'm going to have to do on my end

#

Like a singleton animation handler or somthing

agile solstice
#

If characters can pull the levers at different orders and at entirely different speeds, I'd have to set the lever animations so that they can read a float from the character animator to know how much the lever needs to be pulled at any given time

agile solstice
agile solstice
gray rune
#

gotcha

agile solstice
#

In fact if a character is hitting a lot of buttons on a control panel, I'd perhaps instead do raycasts from the hands that genericly presses any button it hits, than try to send info about each individual press

gray rune
#

atp why not just attach coliders to the hands for the duration the player its in its vicinity?

#

and make the buttons animated on an event

agile solstice
pastel oracle
#

I'm currently trying to implement root motion animations on a character using NavMesh. I just can't get it to work and I'm at my wit's end. Can somebody help me, please?

#

This is my character.

#

The character on the left is complete with a NavMeshAgent and a script. The one next to him is just the basic model with an animation controller and root motion applied.

#

The difference is noticeable. The colorless one slides around while the textured one doesn't.

#

If I remove the script of the Colorless guy it works correctly, so definitely something is at fault there.

#
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;
using UnityEngine.Experimental.AI;

public class CharacterWanderBehaviour : MonoBehaviour
{
    [SerializeField]
    private NavMeshAgent _navMeshAgent;
    [SerializeField]
    private float _maxWalkDistance = 10f;
    [SerializeField]
    private float _minWaitTime = 5f;
    [SerializeField]
    private float _maxWaitTime = 20f;
    
    public bool IsWaiting;

    private Animator _animator;
    private Vector3 _currentDestination;
    private Vector3 _worldDeltaPosition = Vector3.zero;
    private Vector3 position = Vector3.zero;
    private Transform _target;

    void Start()
    {
        _animator = GetComponent<Animator>();
        _navMeshAgent.destination = Vector3.positiveInfinity;
        _navMeshAgent.isStopped = true;

        _navMeshAgent.updatePosition = false;
    }

    private void Update()
    {
        if (_navMeshAgent.remainingDistance <= _navMeshAgent.stoppingDistance)
        {
            if (IsWaiting == false)
            {
                //StartCoroutine(WaitBeforeWandering());
            }
        }

        _worldDeltaPosition = _navMeshAgent.nextPosition - transform.position;
        
        if(_worldDeltaPosition.magnitude > _navMeshAgent.radius)
        {
            _navMeshAgent.nextPosition = transform.position + 0.9f * _worldDeltaPosition;
        }
    }

    private void OnAnimatorMove()
    {
        position = _animator.rootPosition;
        position.y = _navMeshAgent.nextPosition.y;
        transform.position = position;
    }

//... continue in another message
}
#
{
//continuation 
    private Vector3 GetRandomPositionOnNavmesh()
    {
        Vector3 direction = Random.insideUnitSphere * _maxWalkDistance;
        direction += transform.position;

        NavMeshHit hit;
        NavMesh.SamplePosition(direction, out hit, Random.Range(0f, _maxWalkDistance), 1);

        return hit.position;
    }

    private IEnumerator WaitBeforeWandering()
    {
        IsWaiting = true;
        _animator.SetBool("IsWaiting", true);
        _animator.SetBool("IsWalking", false);

        float passedTime = 0f;
        float timeToWait = Random.Range(_minWaitTime, _maxWaitTime);

        while (passedTime < timeToWait)
        {
            yield return null;
            passedTime += Time.deltaTime;
        }

        GoToARandomPosition();
    }

    private void GoToARandomPosition()
    {
        _navMeshAgent.destination = GetRandomPositionOnNavmesh();
        _navMeshAgent.isStopped = false;
        IsWaiting = false;
        _animator.SetBool("IsWaiting", false);
        _animator.SetBool("IsWalking", true);
    }
}
#

Can someone please take a look? I've been looking at this for four five hours now, but not because it's beautiful.

latent orbit
#

Is it possible to play a upper and lower body animation at the same time?

#

Or the same animation twice "overlayed" at different speeds?

sweet pendant
#

Hey guys. I've been using root motion animations and have had an issue in the past with applying gravity during animations. Briefly, when the character walked on uneven terrain, gravity was not applied correctly.

At the time, I searched the forums and found the solution to my problem: Just add a curve in the animation clips called "GravityWeight" with value 1.

Today the question came to me: Is there somewhere in the Unity documentation all the curves that I can use in humanoid animations that are already handled by the engine itself?

This question came to me because I would like to increase my character's range of motion based on some parameter.

hybrid tinsel
#

For the former, you can use a layer mask. For the latter you can use an additive layer.

hybrid tinsel
sick spire
#

Hello, pretty basic question I assume...
I have a bunch of character sprite sheets, all sheets are the same size and follow the same pattern for the character animations. Is it possible to create ONE single set of animations in Unity (like walking in all 4 directions, idle, attacking...), and then load whatever sprite sheet image you need for each character? Or do I have to create all animations separately for each sprite sheet / character in my game?

hybrid tinsel
#

It is very possible but not nearly as easy as it should be.

#

Since unity's handling of sprites is insane under the hood.

sick spire
#

Nvm... Just found the holy grail to do this ! It's a small script that comes in a plugin called "Animancer Lite", just place the texture sheet for each different animated character in the scene and it will display the same animation but changes the sprites to the ones in the sheet provided for each character. This just saved me a ton of time. Also thanks for answering!

restive bluff
#

Whats a good intro cutscene length? Smaller sized game. Were 1:09 currently but 30 seconds feels more natural. Any advice here?

tough swan
#

how do i acces both elements in my script? never tried this way before

misty glacier
#

How to make sure that when you click the button again, the OpenScroll animation is not called and the button went out of the selection state?

hybrid tinsel
covert cipher
#

hi does anyone know how I could turn rotating an object into an animation?

agile solstice
agile solstice
lean dove
#

How does Unity internally convert a regular animation to a humanoid one through an Avatar definition?

Or more specifically: What are some resources (or relevant classes in the UnityCSReference github repository of Unity-Technologies) on how unity handles the creation of humanoid animation keyframes under the hood/in code, given a regular animation clip and the humanoid avatar definition? And how does it apply the humanoid animation properties (e.g. "Chest Front-Back", "Left Forearm Stretch"), back to the actual transforms of a character?
For the second way, animation to actual transform positions, a simple approach is to just sample/play the humanoid animation on a cloned object of the original character and then retrieve the transform values. I don't really know about the other way around though.

Not sure if this goes here or into the coding channels, but I thought it might be more fitting here

#

Maybe I could look into tools that solve something similar? I've seen "Baker" from RootMotion and more relevant perhaps "Animation Converter" from SoxwareInteractive. But if someone has other suggestions, I'd be happy to hear about them

restive bluff
agile solstice
#

The answer doesn't only depend who you're asking and their general preference of cutscenes, but also the content of the cutscene
How dragged out or packed in it might feel depends on how much story you're trying to tell relative to time

#

I prefer games that are capable of telling their story without resorting to taking control away from the player

restive bluff
# agile solstice Opinion The question is entirely subjective

True. Thats a fair opinion. The intro cutscene is to give the player enough understanding of why the player is that character, how they got there, and their purpose. We crushed the scene down to about 45 seconds, with a goal of about 30 in the end.

agile solstice
#

It also depends on the genre and platform
People who play Flappy Bird vs those who play Final Fantasy games have very different expectations

restive bluff
#

The entire game is basically katamari with abilities.

#

Katamari intro scene explains that you're building the moon, our game has you come from the moon and crashing, then your "alternate characters" abilities* take off in different directions and you track them down as part of the gameplay, to gain those abilities. So a 30 second cutscene makes sense. Any longer or shorter might as well not have it.

agile solstice
#

You'll probably want to compare to how similar games are doing it, and then test with your target playerbase

frail portal
#

Hi! im in desperate need for help here UnityChanPanicWork I've run into some weird mesh deformations on the animations of my player. I want it to be able to walk and shoot, so I set up a base layer for the locomotion animations and an attack layer that overrides the upper body of the character when any of the two attack abilities are activated. It was working fine on other characters but with these one I seem to be getting some weird head deformations while it perfomes both animations, any idea what could be happening?

hybrid tinsel
frail portal
#

I just check the bones in the mask and there is none missing

hybrid tinsel
#

Ok, this might sound silly but what happens if you disable the animator entirely and manipulate the bones in question manually?

#

(This is just to eliminate bad weights or the like in the model.)

#

And it definitely only happens when both animations play?

#

Is it a humanoid rig or a generic one?

frail portal
#

its a generic one

#

Mmm no I notice it does it as well when its just attacking and not moving but its more subtle so I must have missed it

#

but I think you're right, its something in the model since I just tried moving the head and its not working as it should.

#

weird thing its working fine in blender...maybe its an export error?

hybrid tinsel
#

Ok, first thing to check is whether increasing the max bone influences setting fixes it.

lapis sluice
#

quick question guys, i have a parameter isRunning and a blend tree with my idle, walk and run animation, can i still set the blend animation of run to activate only when holding shift for example?

#

nevermind i found the issue.. i was writing IsRunning instead of isRunning lol.

covert cipher
#

Hello does anyone know how i can use multiple keys in a transform animation?

hybrid tinsel
lapis sluice
#

sec

#

BRO

covert cipher
#

Like right now my object goes from its regular position to the end position i put in my animation, but i want to make it go from the start position to the end position, and then go behind the start position and back to the start position

lapis sluice
#

i think it has something to do with my code but i cant figure it out

private void Movement()
{
    var horizontalInput = Input.GetAxis("Horizontal");
    var verticalInput = Input.GetAxis("Vertical");

    bool isRunning = Input.GetKey(KeyCode.LeftShift);

    if (Mathf.Abs(horizontalInput) > _threshold || Mathf.Abs(verticalInput) > _threshold)
    {
        var camera = Camera.main;
        var forward = camera.transform.forward;
        var right = camera.transform.right;
        forward.y = 0f;
        right.y = 0f;
        forward.Normalize();
        right.Normalize();

        var desiredMoveDirection = forward * verticalInput + right * horizontalInput;

        transform.rotation = Quaternion.Slerp(transform.rotation, Quaternion.LookRotation(desiredMoveDirection), 0.2f);

        // Set the movement speed based on whether running is active or not
        var speed = isRunning ? MoveSpeed * RunMultiplier : MoveSpeed * 0.5f;

        transform.Translate(desiredMoveDirection * speed * Time.deltaTime, Space.World);

        // Set the animator parameters based on the movement speed and whether running is active
        _animator.SetFloat("MoveSpeed", speed);

        if (isRunning)
        {
            _animator.SetFloat("AnimSpeed", 1f, 0.2f, Time.deltaTime);
        }
        else if (speed > 0f)
        {
            _animator.SetFloat("AnimSpeed", 0.5f, 0.2f, Time.deltaTime);
        }
        else
        {
            _animator.SetFloat("AnimSpeed", 0f, 0.2f, Time.deltaTime);
        }

        // Set the running parameter based on whether running is active
        _animator.SetBool("isRunning", isRunning);
    }
    else
    {
        _animator.SetFloat("MoveSpeed", 0f);
        _animator.SetFloat("AnimSpeed", 0f, 0.2f, Time.deltaTime);
        _animator.SetBool("isRunning", false);
    }
}
hybrid tinsel
lapis sluice
#

actual animations

#

hold up ill show

pure matrix
#

Anyone know why my DAZ JCM shape keys are kinda off in Unity3d?

#

I would show a pic but it does contain some nudity.

pure matrix
#

Has anyone here work with daz characters to unity? If have a issue that I cannot fully explain here. I would like to DM you, if you could help?

hybrid tinsel
#

Blends should always be between synced animations

frank fractal
#

I imported a animation from mixamo and put it on my character but when press play my character that has the animation changes positions, does anyone know why this is?

#

I have 0 code on the character that is changing positions

#

When I check the apply root motion box the position is fixed but I do not want to use root motion is there any other way to fix this?

hybrid tinsel
frank fractal
#

do i need to convert to humanoid in order to bake?

hybrid tinsel
pure matrix
#

Anyone ever handle duel quaternion skinning in unity?

#

Or how to keep the preserve volume on your rig when you export to unity?

stuck elm
#

It is kinda janky since it is handled largely in shader.

#

But it works

pure matrix
# stuck elm https://github.com/KosRud/DQ-skinning-for-Unity

I saw this, I thinking about using it. The only problem I see is that I have a custom skin shader that I created with shader graph. This asset requires me to use there shader, I think. Any way is there a way I can just plug it in to my custom skin shader in shadergraph?

#

Also concerned about when it was last updated. Been awhile.

oblique flare
#

In the start I click normally, at the end I spam my pickaxe. How do I make it so when I spam it dosent do that annoying glitchy interupting thing?

stuck elm
agile solstice
lapis sluice
agile solstice
#

@lapis sluice is the method being called in FixedUpdate()?

agile solstice
lapis sluice
#

it happens to the best of us

sage saddle
#

i would like to avoid the brief flicker of the split second of equip animation playing

paper flax
#

Is there a way to animate a material? i tried looking it up on google/youtube but couldnt find what i was looking for

#

basically, i want to be able to make an object cycle through pre-existing frames

agile solstice
sage saddle
#

thanks, i ended up fixing it by only spawning the mesh without any animator attached

agile solstice
sage saddle
#

yeah

sage saddle
paper flax
agile solstice
paper flax
#

like, i understand the tiling and offset part, but you lost me at keyframe

agile solstice
paper flax
#

only things ive done so far are VRChat maps, and they really dont require any knowledge about anything

agile solstice
dusk valeBOT
#

🧑‍🏫 Unity Learn can offer you over 750 hours of free live and on-demand learning content for all levels of experience! Make sure to check it out at https://learn.unity.com/

lapis sluice
#

can someone help me with the blend tree animations? im still having some issues where my character doesnt move his feet at all

#

ill show my code as well just in case

#
private void Movement()
{
    var horizontalInput = Input.GetAxis("Horizontal");
    var verticalInput = Input.GetAxis("Vertical");

    bool isRunning = Input.GetKey(KeyCode.LeftShift);

    if (Mathf.Abs(horizontalInput) > _threshold || Mathf.Abs(verticalInput) > _threshold)
    {
        var camera = Camera.main;
        var forward = camera.transform.forward;
        var right = camera.transform.right;
        forward.y = 0f;
        right.y = 0f;
        forward.Normalize();
        right.Normalize();

        var desiredMoveDirection = forward * verticalInput + right * horizontalInput;

        transform.rotation = Quaternion.Slerp(transform.rotation, Quaternion.LookRotation(desiredMoveDirection), 0.2f);

        // Set the movement speed based on whether running is active or not
        var speed = isRunning ? MoveSpeed * RunMultiplier : MoveSpeed * 0.5f;

        transform.Translate(desiredMoveDirection * speed * Time.deltaTime, Space.World);

        // Set the animator parameters based on the movement speed and whether running is active
        _animator.SetFloat("MoveSpeed", speed);

        if (isRunning)
        {
            _animator.SetFloat("AnimSpeed", 1f, 0.2f, Time.deltaTime);
        }
        else if (speed > 0f)
        {
            _animator.SetFloat("AnimSpeed", 0.5f, 0.2f, Time.deltaTime);
        }
        else
        {
            _animator.SetFloat("AnimSpeed", 0f, 0.2f, Time.deltaTime);
        }

        // Set the running parameter based on whether running is active
        _animator.SetBool("isRunning", isRunning);
    }
    else
    {
        _animator.SetFloat("MoveSpeed", 0f);
        _animator.SetFloat("AnimSpeed", 0f, 0.2f, Time.deltaTime);
        _animator.SetBool("isRunning", false);
    }
  }```
#

if anyone is curious\

#

each animation is looped, could that be an issue?

robust perch
#

@lapis sluice You're not really showing us the inspector but I suspect root motion is on

#

in the animator component

#

if it is, you need to turn it off

#

that sort of animation where he just start and leans into it is typical of rootmotion where it shouldn't be

#

On an unrelated note; a bit of a stupid question but do you guys know if I should always be using the default foot IK feature in the animator for all animations? I checked for one and it looks good, better than off.

But are there any performance issues with raycasts or some sort of weird behaviour? Basically I'm asking if it safe to turn it on for all animations without thinking

lapis sluice
#

root motion is off

#

always has been

robust perch
#

then click on the individual animations

#

and enable loop pose

#

loop time and loop pose

#

and enable the first two bakes into pose with the (original) option

wicked tiger
#

hi guys, how can I reuse animations on a different skin?

I can't find any tutorials on it on YT

#

Specifically for 2D animations on a sprite sheet

novel portal
#

Is there something like conditions that will transition to next state if condition is met but not lock the animation?
i want to make certain landings and stops go to the locomotion state if speed is greater or less than 1 but conditions as they are will lock that animation in place till the condition is met
should i just do this through script or is there a way to do this through the animator?

lapis sluice
#

before this i baked all of them

agile solstice
#

Do you have a practical example

novel portal
# agile solstice Not sure what you mean by "lock" If no available transition's conditions are met...

well for the landings and stops i'd like certain ones like rolling/skid stops to stop if < 1 speed and hard landings or stops with no movement to stop playing if > 1 speed. I was wondering if instead of adding animation events to all of these animations if I could somehow do this through the animator like how they have conditions (but making it a condition to end the animation early and go forward with the transition instead of being a required condition to transition)

agile solstice
#

You could have skidding transition to rolling with exit time, but have both of them and their transition interruptable by transition to stopping in case of a sudden stop

robust perch
#

anim import settings

lapis sluice
#

ill drop it here in a bit

lapis sluice
#

the other ones are exactly the same

robust perch
#

That looks fine althought the third bake into pose never works for me

#

I have to turn it off

lapis sluice
#

lemme try it

robust perch
#

goes without saying I Guess, but have you rigged it to the right avatar? And does it work in preview?

lapis sluice
#

of what happens

lapis sluice
robust perch