Seriously what is this "optimized game object hierarchy" ..and why is it making my life so bad ! :-(

i have the unity survival shooter tutorial and When i click on the player , select animation window , everything is greyed out and it says "Editing and playback of animation on optimized gameobject heirarchy is not supported "

I am looking to tweek the animation of the player in the animation window to study how it works . Now how can i make this window show all the animation of the player like how its supposed to be like ?

I Cant find any help or information regarding this on google. am sure If you could help me out with this its gonna be usefull for a lot of frustrated newbies like me .

thanks in advance .

The error message tells you exactly what you need to do though. Go to the mesh import settings and turn off optimize gameobjects.

( relevant manual page : Unity - Manual: Rig tab )

1 Like

thanks for the advice , I selected the character and turned off ‘optimize gameobjects’ and ‘optimize mesh’ option (please see the attachment )). selected “reimport” from charachter assets folder , but still the the animation panel is grayed out and says Editing and playback of animation on optimized gameobject heirarchy is not supported "

Do it for all objects in that hierarchy (I also see a gun object? I don’t know what else)

I did that for all the characters and objects ,still the same :frowning: .By the way the character player is not a humanoid ,its generic , i dont know if that the issue .I guess unity doesnt want people to mess around with this player character.

anyways thanks for you help :slight_smile:

Unless there’s a bug (which is possible), the asset you are previewing the animations on is still optimized.
Probably, the instance in the scene is still optimized, and this is what you are previewing on.

Also, the option you are looking to disable is OptimizeGameObjects in the Rig panel.
The other one is unrelated

The optimization can be turned off on the animator on the object. Click the little wheel thing next to the animator.

There’s a bug where if you have the animation window open when you turn off the optimization, it’ll still show grayed out until you select a different animator or close/open the window again.

@DavidGeoffroy , is there any way for us to check in code if an animator is optimized? There’s a very nice API for doing the optimization from code,but I haven’t found any way to check if it is optimized. I know that’s available internally, as both the animation window and the drop-down on the animator’s wheel changes based on if it’s optimized, so I assume it’s just not exposed?

1 Like

Thanks a lot guys . Appreciate your support .God bless u guys.

I know this is an old post, but I got the same problem today (Unity 2017.2.0f3). The bug is that re-importing a model with the setting Optimize Game Objects turned off does not update the instances in the scene or the prefab.
The way I got around this problem is by recreating a new prefab from scratch.

@Salim - if there was a bug there, its fixed. no need to chuck the prefab; just delete the instance from the hierarchy and drag a new one in.

There are two issues being discussed here, making this confusing. One is that changing the import settings for a prefab doesn’t change an instance that is in hierarchy, at least until you select that instance again, or mouseover the animation tab, but what was stopping OP is that the animations in this tutorial are read-only.

of minor interest is that in the upper right corner of the inspector there is a debug mode that lets you play with certain values, but only the ones in the inspector. But, with some prodding, I replicated solution for someone trying to do what OP was trying to do.

it is: switch inspector to debug mode, in Assets > Models > Characters expand Player, select a read-only clip from inside and type ctrl-d to duplicate it. Remove all the old states from animator tab (the mechanim nodes) and replace with the dupe, wiring a transition from start to it, then in animation, - which is not the (mechanim) animator - click an entry and arrow up until you reach the top (because the blank line at the top causes all entries to be selected) and then play with the values in either dope sheet or curves. (if in curves, typing ‘a’ will scale the mess to the window)

i jacked that dude all up, and it felt good.

thanks Removing "read-only" from Animation Clips? - Unity Engine - Unity Discussions

Please check the attached image file. Hope this helps.

4496428--414769--BugFix.jpg

7 Likes

Your image really saved me from a collapse to maintain an very old project. Thank you ~~