Author Topic: Erro: Type `Camera' does not contain a definition for  (Read 8324 times)

DarthMH

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Erro: Type `Camera' does not contain a definition for
« on: June 20, 2013, 04:05:00 PM »
First congratulations for this great plugin, very good. Congratulations to everyone involved in providing a great support for this product ..

Just import the NGUI in my project, but he accuses the following errors:
  1. Assets/NGUI/Examples/Scripts/InventorySystem/Game/UICursor.cs(64,60): error CS1061: Type `Camera' does not contain a definition for `ViewportToWorldPoint' and no extension method `ViewportToWorldPoint' of type `Camera' could be found (are you missing a using directive or an assembly reference?)
  2.  
  3. Assets/NGUI/Examples/Scripts/InventorySystem/Game/UICursor.cs(67,46): error CS1061: Type `Camera' does not contain a definition for `isOrthoGraphic' and no extension method `isOrthoGraphic' of type `Camera' could be found (are you missing a using directive or an assembly reference?)

Only imported of the Asset Store, and nothing more, and he began to accuse this error, deleted the plugin and tried to import again and the error persists. I closed the project, tried on another computer, gave the same thing.

I created a new project with a scene containing only the camera, imported and same error happened. What is this happening?

I tried to delete this folder Examples, but the Unity starts accusing several other errors.

Thank you, and success to NGUI
« Last Edit: June 20, 2013, 04:10:05 PM by DarthMH »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Erro: Type `Camera' does not contain a definition for
« Reply #1 on: June 21, 2013, 05:41:26 AM »
You have a custom class called "Camera".

You need to rename it to something that doesn't conflict with a Unity class.