|
Hi! Plz help, I have an Error: Assets/myGUI.cs(11,22): error CS0246: The type or namespace name `Item' could not be found. Are you missing a using directive or an assembly reference? Here the script: using UnityEngine; using System.Collections; using System.Collections.Generic; public class myGUI : MonoBehaviour { public float lootWindowHeight = 90; }
(comments are locked)
|
|
Either Item doesn't exist, or it's in a JS file. In which case, put it in Standard Assets. It's not in a JS file. I tried to put the file into the Standard Assets, but the error it's same. :S
Jun 30 '12 at 03:51 PM
Krumplee14
So do you even have the "Item" class? It's quite obvious that the compiler can't find a class with that name, so you don't have one. Maybe you mistyped it? Remember case-sensitivity! "item" is not the same as "Item".
Jun 30 '12 at 03:56 PM
Bunny83
Does Item exist then ? It's not a protection's level or the compiler would say it.
Jun 30 '12 at 03:58 PM
Berenger
YEAH. It's good. Thx for help! The Item.cs was missed. :)
Jun 30 '12 at 04:52 PM
Krumplee14
(comments are locked)
|

The problem is possibly not with this script. Where do you declare Item as a class/structure?