Search code examples
c#unity-game-engineunityscriptngui

`UILabel' could not be found


When I Place my Demo.cs in Standard Assets Folder I am Getting this error:

Assets/Standard Assets/Demo.cs(130,17): error CS0246: The type or namespace name 'UILabel' could not be found. Are you missing a using directive or an assembly reference?

and when I place Demo.cs Assets Folder above error get solved but I cant call any method of Demo.cs from my another Demo1.js

Gives error:
Assets/Scripts/Demo1.js(81,20): BCE0018: The name 'Demo' does not denote a valid type ('not found').

any solution ?


Solution

  • I was not able to access NGUI components from unityscript Got solution from below link

    http://www.tasharen.com/forum/index.php?topic=6.0