Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Das on October 16, 2013, 10:56:54 PM
-
When I Place 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 ?
-
The way Unity works is this:
Standard Assets are processed first. Everything outside of Standard Assets will not be available to scripts inside. The FAQ explains what to do with NGUI to get it to run with Javascript -- which is also always compiled before C#.
Bottom line: read the FAQ, and don't mix C# with JS.
-
Thanks for reply and I gone through FAQ solved many problems.