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
Post a Comment