Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: moghes on October 14, 2013, 03:45:22 AM

Title: ArgumentOutOfRangeException
Post by: moghes on October 14, 2013, 03:45:22 AM
Hello everyone,

I faced this error after working a while with NGUI, I don't know where it came from or what caused it to happen.
Its in the UIPanelInspector.cs script line 216.

" ArgumentOutOfRangeException: startIndex + count > this.length
Parameter name: count"

Any hints please?
Title: Re: ArgumentOutOfRangeException
Post by: ChrisR on October 14, 2013, 04:50:49 AM
I believe this error occurs when you have a sliced, tiled or filled sprite with a negative scale. (Usually done to mirror the graphic one an axis by artists.)

If you need to have a sprite inverted, you can use rotations instead of a negative scale.