Author Topic: ArgumentOutOfRangeException  (Read 2417 times)

moghes

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 17
    • View Profile
ArgumentOutOfRangeException
« 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?

ChrisR

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 33
    • View Profile
Re: ArgumentOutOfRangeException
« Reply #1 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.