- Home /
Duplicate Question
Can Javascript make calls to C#
Hi,
I have a few C# scripts and few js scripts. I prefer to program in JS and dont really want to convert all my other C# to js.
Lets say i have a C# variable called myvariable. Is there any way i can fetch that variable s value from a javascript file?
Also can i run public C# functions from a javascript. If yes could someone show a quick snippet on how to do this.
Thanks allot.
This question has been answered many times on UA. Search for your title on UA for many hits. The “trick” is to make sure the scripts you need to access are compiled first…usually by moving them to Standard Assets.
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Need help converting C# to Javascript! 1 Answer
Converting from javascript to c# 1 Answer
Pairing and GUITexture with a Timer? 1 Answer