![]()
hello all
How to pass variable js to c#
i have js file name of Car and other file in C# name of progresbar.
so i want to pass variable js to c#
- pls give me structure of coding.
- if you have some link or example pls give me
Thanks in advance
![]()
hello all
How to pass variable js to c#
i have js file name of Car and other file in C# name of progresbar.
so i want to pass variable js to c#
Thanks in advance
A javascript class will be able to access the members of a c# class from within unity so long as they are in an accessible namespace.
This will follow normal conventions, and is absolutely no different from regular variable access.
The reason for this, is Unity isn’t using two seperate interpreters for each scripting language, it is compiling down both javascript (read: unityscript) and C# into machine code via mono.
Meaning, both C# and Unityscript are the same basic language once Unity has compiled them through Mono.
thanks
give me some hints or code
This attitude is exactly why I’m not going to.