How to do an import statement in JavaScript in the Unity3d Engine? -


i'm using javascript code within unity engine. import class in c# can use using. however, can define variable full name var counttext : unityengine.ui.text; still want know if there way import class first use it.

using c#. import javascript/unityscript.

to import unityengine.ui , cut down on amount need type variable declarations:

import unityengine.ui;  var counttext : text; 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -