- Home /
how to access javascript method using c sharp
how can we access javascript method using c sharp? how can we call a javascript method using c sharp?
how can we set the variable of javascript class using c sharp?
I am not sure for I never tried that but you could try to use Send$$anonymous$$essage method.
http://unity3d.com/support/documentation/ScriptReference/GameObject.Send$$anonymous$$essage.html
Answer by ti89TProgrammer · Feb 28, 2012 at 09:34 PM
I would think you should be able to just call such methods normally — the same way you call methods written in C#. (Parameter types and return types might not be the same by default, though, so you might need to give the JavaScript compiler some help there.) If you’re still having problems, please post your code.
UPDATE:
Never mind; this is restricted after all. See call a javascript function from c-sharp.
What’s going on here? I edited this answer of $$anonymous$$e, but I don’t see my changes showing up either here or in the history, although I do see the changes when I go to edit the answer.
Anyway … see call a javascript function from c-sharp.
Your answer
Follow this Question
Related Questions
Can someone help me fix my Javascript for Flickering Light? 6 Answers
Setting Scroll View Width GUILayout 1 Answer
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
I need help with a script(brauche hilfe mit einen Script) 0 Answers
Objectives based on object appear. 2 Answers