- Home /
What does !slot->GetLocalAABB().IsValid() mean?
I get the following message on my editor log:
!slot->GetLocalAABB().IsValid()
UnityEditor.EditorGUIUtility:RenderGameViewCameras(Rect, Rect, Boolean, Boolean)
This happens when I select a GameObject (it's a particle system) in the editor.
Answer by Graham-Dunnett · Feb 03, 2010 at 09:45 AM
This message is an assert from Unity. It is basically saying that an AABB (axis aligned bounding box) for a game object is not valid and it is meant to be valid. AABBs are used in Unity to help decide whether objects are visible in the camera - they are boxes that fully enclose the object. (Think of them as the smallest cardboard box that the object will fit into with the box aligned to the XYZ axes. Normally AABBs are managed automatically for you; Unity can look at the vertices of the game object and figure out the AABB. For dynamic objects, such as particle systems the bounding box can end up being infinitely small or infinitely large, and these situations render the AABB as invalid, which triggers the assert.
If you get this assert with particle systems you can probably ignore it - perhaps the initial positions of the particles are all at the same point in space so the AABB is infinitely small. If you get this assert with other game objects it may mean something is wrong with the vertex positions.
Thank you very much for the explanation, Graham. I'm getting this error with some meshrenderers that are loading pieces of a player (showing just the boots of a generated character, for example). Thanks for your explanation, I am hoping it will help track down the issue.
It does make sense, at some point I was drawing the bounds for my objects with Gizmo DrawWireCubes, and there were a some very wacky bounds.
Answer by Orion · Feb 18, 2010 at 03:01 PM
Min/Max Emission and Min/Max Energy had to be at least 1 for me to fix this one.
Answer by amincahcepu · May 04, 2011 at 02:23 AM
i'm experience the same problem, altough bit different, i set my particle emit range below 0, and i get some error but it doesn't effect my game anything.
i change it again to 0 and the error gone :)
Your answer
Follow this Question
Related Questions
What causes error !sh->m_AABB.IsValid()? 3 Answers
Game works differently on android 1 Answer
Internal_DrawMeshNow2 Error 1 Answer
Unity 2020.2 crashes when loading my Unity 2020.1 project 0 Answers
Scene disappearing when zooming in Unity 3 Answers