Author Topic: mTouchID = int.MinValue; occur error at unity5.0  (Read 2234 times)

leegod

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 90
    • View Profile
mTouchID = int.MinValue; occur error at unity5.0
« on: March 17, 2015, 12:42:37 AM »
So I have project that has NGUI and no problem at all at unity 4.6.1

I made backup and upgraded to unity 5.0, After upgrade, 20 errors occurs, I imported ngui 3.8 at asset store just before, most error disappeard, but one line.

mTouchID = int.MinValue;


Assets/Script/UI/CardDetailScript.cs(7,9): error CS0103: The name `mTouchID' does not exist in the current context

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: mTouchID = int.MinValue; occur error at unity5.0
« Reply #1 on: March 19, 2015, 06:24:14 AM »
Well, considering it's your script, not an NGUI script...

nathantran

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Re: mTouchID = int.MinValue; occur error at unity5.0
« Reply #2 on: April 15, 2015, 09:57:10 AM »
mTouchID is a protected attribute in UIDragDropItem.cs

http://www.tasharen.com/ngui/docs/class_u_i_drag_drop_item.html

It was removed in 3.8.2.