Sample ui error message


#1

When I click to open the Character screen from the sample ui, I get the following error message:

“Invalid AABB inAABB
UnityEngine.UI.ScrollRect:LateUpdate()”

It appears to work correctly though.


(Leslie Young) #2

Strange error that comes up now and then. Not really sure what causes it.

See if these last two comments help?

http://forum.unity3d.com/threads/invalid-aabb-errors.344280/#post-2318718


#3

I added a Canvas component to CharaSheet then set Pixel Perfect = On and Override Sorting = On and the error message went away. But then I couldn’t click on the Character screen. It just registered as a click on the terrain.

So I followed the advice here to add a GraphicRaycaster component and it appears to work correctly:

http://answers.unity3d.com/questions/956701/override-sorting-breaks-blocks-raycasts-1.html


(Leslie Young) #4

I explain why click-through happens, here. Red that to get an idea of what is happening. In the case of the Sample_UI it is easy since there is this one script to add to the execution order.

Are you handling the click in script or Blox (if Blox, which Event)?


#5

I explain why click-through happens, here.

I had script execution order set up with plyRPG_UI set to -100 and it was working correctly before, except for the error message.

Are you handling the click in script or Blox (if Blox, which Event)?

There’s no Blox scripts on CharaSheet that I’ve attached.


(Leslie Young) #6

See Fixing Invalid AABB error


#7

Works perfectly. Thank you.