This question was
closed Nov 02, 2015 at 03:43 PM by
Statement for the following reason:
http://answers.unity3d.com/questions/1091233/unable-to-post-on-the-community-help-forums.html
Question by
FRedFeyb · Nov 02, 2015 at 03:31 PM ·
c#javascriptguierrorgameobject
Setting EventTrigger in Unity with JavaScript
I'm currently trying to add onClick methods to a button created at runtime. I have tried searching but can only find c# examples, could anyone help me or direct me as to how I would go about this using JavaScript, the following code is the button I have made.
GUI.Button(new Rect(280, 240, 50, 30), items[1]);
ps: I have tried using the c# examples but they just created errors so I haven't included my attempts.
Comment