Author Topic: Downloaded NGUI camera script error  (Read 2571 times)

mohit

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Downloaded NGUI camera script error
« on: August 22, 2013, 07:26:11 PM »
Hi,

I am new to Unity and NGUI. Just downloaded the NGUI package and got following error in the console.

Assets/NGUI/Scripts/UI/UICamera.cs(964,31): error CS0029: Cannot implicitly convert type `UnityEngine.Touch' to `Touch'

Assets/NGUI/Scripts/UI/UICamera.cs(966,66): error CS1061: Type `Touch' does not contain a definition for `fingerId' and no extension method `fingerId' of type `Touch' could be found (are you missing a using directive or an assembly reference?)

Assets/NGUI/Scripts/UI/UICamera.cs(969,47): error CS1061: Type `Touch' does not contain a definition for `phase' and no extension method `phase' of type `Touch' could be found (are you missing a using directive or an assembly reference?)

Assets/NGUI/Scripts/UI/UICamera.cs(970,49): error CS1061: Type `Touch' does not contain a definition for `phase' and no extension method `phase' of type `Touch' could be found (are you missing a using directive or an assembly reference?)

Assets/NGUI/Scripts/UI/UICamera.cs(980,60): error CS1061: Type `Touch' does not contain a definition for `position' and no extension method `position' of type `Touch' could be found (are you missing a using directive or an assembly reference?)

Assets/NGUI/Scripts/UI/UICamera.cs(983,50): error CS1061: Type `Touch' does not contain a definition for `position' and no extension method `position' of type `Touch' could be found (are you missing a using directive or an assembly reference?)

Assets/NGUI/Scripts/UI/UICamera.cs(994,35): error CS1061: Type `Touch' does not contain a definition for `tapCount' and no extension method `tapCount' of type `Touch' could be found (are you missing a using directive or an assembly reference?)

I am using Unity 4.20f4 and NGUI paid (but not pro) latest version.

Any help is appreciated,

Thank you

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Downloaded NGUI camera script error
« Reply #1 on: August 23, 2013, 02:49:03 PM »
You have your own class named "Touch", which conflicts with Unity's class named "Touch".

mohit

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: Downloaded NGUI camera script error
« Reply #2 on: August 23, 2013, 09:49:31 PM »
Thank you. It solved the problem.

Mohit