- Home /
Question by
pretender · Jan 12, 2012 at 07:28 PM ·
javascripteventsdelegates
c# delegates/events using from js?
is it possible to use events/delegates stuff that was written in c# from unityscript?
Comment
Answer by Julien-Lynge · Jan 12, 2012 at 07:51 PM
Unityscript (aka Javascript) doesn't have the concept of delegates in the way that C# uses them, so no. Perhaps if you gave us more information about what you're trying to do we could give you a better idea of what's possible and how you might do it in JS.
BTW, if you search around on these forums, this question has been answered multiple times. Start with the 'Related Questions' to the right. For instance:
http://answers.unity3d.com/questions/187781/js-delegates.html http://answers.unity3d.com/questions/195664/c-events-closest-in-js.html