I started getting this error whenever I run the game in the editor. It’s coming from the camera - if I disable the camera component of the main camera, the error stops. I get one report each frame. I tried disabling all other objects in the scene but I’m still getting it, so I’m not sure what it’s tied to.
Does anyone know what the issue could be?
Getting the same error spammed to the console. In my case it starts happening as soon as the optimized game object has a parent assigned (is not within the root level of the hierarchy).
What IS an optimized game object anyway?
It’s that checkbox labeled “Optimize Game Objects” that you can find in the “Rig” tab of the import settings of your model. It gets rid off unnecessary transforms in your objects hierarchy (e.g. doesn’t create individual transforms for each bone), which improves animation performance quite significantly.
I transferred my project to Unity 5.1.0 f3. All broken I used models with optimized transforms - now they all return errors. Any model that optimize bones with extra transforms to expose - produces an error if you put it on the scene at any parent transforms. Even if the optimization was made by the inspector.
Oh, and they give an errors when they get to the camera render.
I’m getting the same issue here as well since updating to v5.1. I’ve just submitted a bug:
http://fogbugz.unity3d.com/default.asp?703850_l7mr34fhku3djrcs
Sorry, it’s a stupid mistake. Should not assert when the parent of the character isn’t NULL. Will fix it. Btw, it only assert in the editor.
Is there an ETA on when the next patch will be released? This really is a show stopper for us in terms of productivity.
One week? Just estimation.
So has this been fixed in 5.1.0p1? I can’t see any mention of it in the release notes.
Nope doesn’t look like it.
I am too getting this spam in 5.1.0p1
Any workarounds till it’s fixed?
Still getting it with 5.1.1f1 released yesterday.
This makes looking for errors in the Editor extremely painful…
I just upgraded to 5.1.0p1 and started getting this error for the first time as well. When a certain unit/character “becomes visible” by the camera, I get this error spammed in the console “Invalid optimized game object”.
My guess is it has to do with import rig settings on certain models/characters, and something with these new patches doesn’t upgrade or transition well.
I hope there’s an easy fix for this on Unity’s end. My previous Unity version was 5.0.x… and this error was not present then.
Yep still getting this in all 5.1.0 patch releases and 5.1.1f1. What build will this issue be fixed in!?
just throwing it out there as i haven’t seen this error myself. How about unchecking the optimize game object ( in the older version) then recheck it in the new version? or even just uncheck it in the current builder, reimport all then re-enable?..does it still occur?
Yes this problem still persists. The problem is caused by a combination of using ‘Optimize Game Objects’ and parenting the model to another GameObject.
Looks like it has been fixed in 5.1.1p1, nice!
i unchecked all ‘Optimize Game Objects’ ticks in my project but i still get spammed… i have also 5.1.1p1
Weird, it was fixed for me in 5.1.1p1