x


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.

more ▼

asked Feb 03 '10 at 09:35 AM

Graham Dunnett gravatar image

Graham Dunnett ♦♦
12.8k 11 20 66

(comments are locked)
10|3000 characters needed characters left

3 answers: sort newest

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.

more ▼

answered Feb 03 '10 at 09:45 AM

Graham Dunnett gravatar image

Graham Dunnett ♦♦
12.8k 11 20 66

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.

May 12 '10 at 05:23 PM Andy Korth
(comments are locked)
10|3000 characters needed characters left

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 :)

more ▼

answered May 04 '11 at 02:23 AM

amincahcepu gravatar image

amincahcepu
20 5 5 10

(comments are locked)
10|3000 characters needed characters left

Min/Max Emission and Min/Max Energy had to be at least 1 for me to fix this one.

more ▼

answered Feb 18 '10 at 03:01 PM

Orion gravatar image

Orion
1 1 1 1

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2025
x1725
x659
x8
x6

asked: Feb 03 '10 at 09:35 AM

Seen: 2063 times

Last Updated: Feb 03 '10 at 10:39 AM