Author Topic: Error when update 2.21  (Read 6502 times)

iwishash

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
Error when update 2.21
« on: September 23, 2012, 01:27:35 AM »
I did update version 2.21 from 2.16, but I got an error message like below.

"Assets/NGUI/Scripts/Internal/UIDrawCall.cs(272,38): error CS1061: Type `UnityEngine.Mesh' does not contain a definition for `colors32' and no extension method `colors32' of type `UnityEngine.Mesh' could be found (are you missing a using directive or an assembly reference?)"

I deleted 2.16 version of NGUI folder, then Update 2.21 package.
What did I wrong?

AndyGFX

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 24
    • View Profile
    • AndyGFX
Re: Error when update 2.21
« Reply #1 on: September 23, 2012, 04:00:54 AM »
You need update Unity too to 3.5.5f3

steddyman

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 22
    • View Profile
Re: Error when update 2.21
« Reply #2 on: September 27, 2012, 03:58:48 PM »
I too got this error, and I am running Unity 4.0 b10.

I'm not sure if this is related, but my main issue is since upgrading my GUI seems burned into the panel.  When I click Play I get the same labels repeated over the top.  I tried deleting and recreating the UI, but even with no controls present the Panel is still displaying the text from the two Labels I had previously.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Error when update 2.21
« Reply #3 on: September 27, 2012, 06:27:35 PM »
"burn-in" is a sign that your camera is not clearing its color buffer. Check its clear flags.

steddyman

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 22
    • View Profile
Re: Error when update 2.21
« Reply #4 on: September 28, 2012, 02:53:22 AM »
Thanks, but I don't think that was the problem.  I have three cameras, as follows:

1. Background cam - Depth 0 - Shows stars and Skysphere
2. Main cam - Depth 1 - Shows all 3d objects
3. GUI cam - Depth 2 - Shows GUI

The Background cam is set to Solid colour and the other two are set to Depth only.

Found when compiling to device was fine, problem only existed in editor.  However we had a power failure last night, and when I booted my Mac back and ran Unity, the problem was then gone in Editor too!!

Dover8

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 20
    • View Profile
Re: Error when update 2.21
« Reply #5 on: February 01, 2013, 10:13:54 AM »
You need update Unity too to 3.5.5f3

And what if we can't?

Dover8

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 20
    • View Profile
Re: Error when update 2.21
« Reply #6 on: February 01, 2013, 11:39:23 AM »
To Solve this:

Find all
  1. #if UNITY_3_5_4
and change to
  1. #if UNITY_3_5
or whatever version of unity you are using pre 3.5.5.
« Last Edit: February 01, 2013, 12:09:06 PM by Dover8 »