Headless mode and animation

Hi,

I’m working on a multiplayer game and I have a Unity server which behaves differently when I run it in headless mode. One of my NPCs starts a jump animation immediately after it is respawned. During the animation, it shouldn’t do any AI, so I check it with something like:
animation.IsPlaying(“jump”)

When the server runs in windowed mode, the animation starts and this checkup returns false after the animation is finished.
When running in headless mode, the check always returns true, even when the animation is finished playing, so NPC is stuck and won’t move into next stage.

Seems like a problem with animation states in headless mode.

Anyone has any experience with this?

Thanks

For anyone who might stumble upon the same problem, the solution in this case is to go to Animation Component of the problematic object and set Culling Type to Always Animate. It has been set on "Based On Renderers" and of course, since there is no renderer in the headless mode, animation is not performed.