- Home /
Question by
Spoukey · Feb 22, 2015 at 10:01 PM ·
c# to javascript
Access a public class from C# script in JavaScript
"How can i access a public class from a C# script in JavaScript? I know how to access a public class in C# from another C# script but not C# from JS."
Comment
Do search the answers before asking questions, some such as this are quite common.
http://answers.unity3d.com/questions/252865/accessing-a-c-field-from-javascript.html
Answer by Mehul-Rughani · Feb 23, 2015 at 06:13 AM
Try SendMessage()
http://docs.unity3d.com/ScriptReference/GameObject.SendMessage.html
I just changed my program to C# is better this way.Thanks for help any way!
Your answer
