Question

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 ?

Était-ce utile?

La 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

Autres conseils

The UILabel class you are looking for is likely part of NGUI.

Import NGUI into your current project from the asset store (assuming you've bought it) and Unity will find the class.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top