Author Topic: Some errors in 2.3.4  (Read 2597 times)

adam718

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 60
    • View Profile
Some errors in 2.3.4
« on: March 04, 2013, 08:53:01 AM »
Hi! Aren.
I updated NGUI 2.3.4 today.
But some unexpected errors occurred when synchronize.
** This worked well until NGUI 2.3.3c.

1. The following error added in 2.3.4
    "Scale of 0 is invalid! Zero cannot be divided by, which causes problems. Use a small value instead, such as 0.01
(0.0, 0.0, 0.0)"

    - When scale was 0, the error above occurred.
    - And especially, checkbox animation(NGUI is involving) is displaying error because it is scaling checkmark sprite from 0 to 1.

       It can be reproduced in example Tutorial X - Video.unity   

       If you highly recommend not to set scale to 0, it might be better to update or remove checkbox animation. ^*^

2. In many cases mPanel is set to null, and finally occurred NullReferenceException.
    in OnFill() in UISprite.cs, colF.a *= mPanel.alpha; occurred error because mPanel is null.
    I made prefab for checkbox, and add it in runtime, but in that time such error occurred. (works well in 2.3.3c)
    Would you help me how to fix it?

Thank you,
Adam.
« Last Edit: March 04, 2013, 10:23:17 AM by adam718 »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Some errors in 2.3.4
« Reply #1 on: March 04, 2013, 12:27:00 PM »
1. This was already fixed locally, and will be live in the coming update.

2. It shouldn't be possible for the panel to be null. OnFill is called by a UIDrawCall, which is created by the UIPanel. How are you getting it to be null?

adam718

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 60
    • View Profile
Re: Some errors in 2.3.4
« Reply #2 on: March 04, 2013, 08:36:32 PM »
1. This was already fixed locally, and will be live in the coming update.
=> Thank you Aren.
2. It shouldn't be possible for the panel to be null. OnFill is called by a UIDrawCall, which is created by the UIPanel. How are you getting it to be null?
=>I also debugged it but only a few objects not every object occurs such error.
    I'll test it more and inform you more detail for this error soon.

Thanks again. ^*^