Author Topic: [ERROR] Unity 4.5.0 on MAC NGUI(3.6.1c)  (Read 1991 times)

brunoroma

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
    • View Profile
[ERROR] Unity 4.5.0 on MAC NGUI(3.6.1c)
« on: May 29, 2014, 04:29:45 AM »
NGUI(3.6.1c)

Assets/NGUI/Scripts/Editor/NGUIContextMenu.cs(443,36): error CS0309: The type `Camera' must be convertible to `UnityEngine.Component' in order to use it as parameter `T' in the generic type or method `UnityEngine.GameObject.GetComponent<T>()'

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [ERROR] Unity 4.5.0 on MAC NGUI(3.6.1c)
« Reply #1 on: May 29, 2014, 04:42:02 AM »
Means you have your own class called "Camera" that conflicts with Unity's Camera class.