# Not assigning an animation breaks the new anim component

**URL:** <https://forum.playcanvas.com/t/not-assigning-an-animation-breaks-the-new-anim-component/20089>\
**Category:** Help & Support\
**Created:** [May 11, 2021, 10:05am UTC](https://forum.playcanvas.com/t/not-assigning-an-animation-breaks-the-new-anim-component/20089 "2021-05-11T10:05:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![LucaHeft](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/lucaheft/32/9676_2.png) [@LucaHeft](https://forum.playcanvas.com/u/LucaHeft)\
**Post date:** [May 11, 2021, 10:05am UTC](https://forum.playcanvas.com/t/not-assigning-an-animation-breaks-the-new-anim-component/20089/1 "2021-05-11T10:05:09Z")

</div>

Hey, im trying to an anim state graph with an empty first state (no animation assigned). Unfortunately this breaks the whole anim component. No animations are played, but no error is thrown.

Here is a screenshot of what im trying to do:

 ![Capture](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/2X/e/ecf8bf30fa773644c5b9ecaa7b2b00afd6852eba.png)

I also tried adding just an empty state without any transitions. This also breaks the anim component:

 ![Capture2](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/2X/c/cbe65e5f1cc556d574cffa95d88b1ba526cbecfa.png)

Are states without an assigned animation not supported?

---

<div class="post-metadata">

**Author:** ![mvaligursky](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/mvaligursky/32/11681_2.png) [@mvaligursky](https://forum.playcanvas.com/u/mvaligursky)\
**Post date:** [May 11, 2021, 10:16am UTC](https://forum.playcanvas.com/t/not-assigning-an-animation-breaks-the-new-anim-component/20089/2 "2021-05-11T10:16:09Z")

</div>

@Elliott

yes, I believe if you don’t have an animation assigned, the anim component is inactive.  
What would you expect to happen when no animation is assigned on a state that is active? What should the character display as … should it use default pose?

Perhap we just need some warning in the inspector. Or even warning message when play is called from the script on the anim component that is not set up properly.

---

<div class="post-metadata">

**Author:** ![LucaHeft](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/lucaheft/32/9676_2.png) [@LucaHeft](https://forum.playcanvas.com/u/LucaHeft)\
**Post date:** [May 11, 2021, 10:20am UTC](https://forum.playcanvas.com/t/not-assigning-an-animation-breaks-the-new-anim-component/20089/3 "2021-05-11T10:20:36Z")

</div>

I’m expecting it to basically do nothing then. So default pose. Maybe previous pose if i am transitioning to an empty state. I think that is how Unity handles it.

My use case is this:  
I want to show an exploded view of a 3D model. Somthing like this:

 ![](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/2X/7/7e00a64bd52d4ab2db30c7bf2bf036c0d67c4587.jpeg)

I have 2 Animations (FlyOut/FlyIn). Somehow i have to start in a default pose though.

**EDIT:** I guess i could add an animation with just the default pose and one keyframe, but thats rather inconvenient.

---

<div class="post-metadata">

**Author:** ![Elliott](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/elliott/32/6909_2.png) [@Elliott](https://forum.playcanvas.com/u/Elliott)\
**Post date:** [May 11, 2021, 2:33pm UTC](https://forum.playcanvas.com/t/not-assigning-an-animation-breaks-the-new-anim-component/20089/4 "2021-05-11T14:33:21Z")

</div>

The anim component is indeed inactive if any of it’s states are unset. The underlying animation system depends on animations being present in a state for blending purposes. Blending to a T pose isn’t something that’d be trivial to achieve right now as we’re not currently storing any canonical version of a model’s pose.

You’ve already suggested a decent workaround which will resolve this issue. For the time being I think we should consider making the messaging clearer on the anim component.

---

<div class="post-metadata">

**Author:** ![stan](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/s/51bf81/32.png) [@stan](https://forum.playcanvas.com/u/stan)\
**Post date:** [July 5, 2022, 11:24am UTC](https://forum.playcanvas.com/t/not-assigning-an-animation-breaks-the-new-anim-component/20089/5 "2022-07-05T11:24:52Z")

</div>

I’d like to support this request.  
Having empty states (like in Unity) would be REALLY helpful.

---

<div class="post-metadata">

**Author:** ![mvaligursky](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/mvaligursky/32/11681_2.png) [@mvaligursky](https://forum.playcanvas.com/u/mvaligursky)\
**Post date:** [July 5, 2022, 11:29am UTC](https://forum.playcanvas.com/t/not-assigning-an-animation-breaks-the-new-anim-component/20089/6 "2022-07-05T11:29:07Z")

</div>

@stan - create a feature request issue here please, it sounds like a useful functionality:

> **[Issues · playcanvas/engine](https://github.com/playcanvas/engine/issues)**
>
> Fast and lightweight JavaScript game engine built on WebGL and glTF - Issues · playcanvas/engine
