- Home /
4.6 - Using new GUI with JavaScript functions
Hi Guys, I'm trying to use the new GUI system with 4.6 with a Javascript function. Only examples I can find online are C#
Is it even possible?
Answer by Rtyper · Mar 03, 2015 at 10:45 AM
It works just fine with JavaScript, just make sure your functions are marked as public and they should show up in that box.
This is what I've tried. It's still not working. :-/
You can only send 1 variable to the function. A cheat is to send a string value with a delimited text but you probavly just need to tell it which volume control is selected and have it increase with one button and decrease with the other.
$$anonymous$$mmpies is right, it can only accept a single parameter, and it can only be a string, int, float or object type.
Ok I'm stuck again. Why does it mean when it says "$$anonymous$$issing"?
Your answer
Follow this Question
Related Questions
If String is in List Then... 2 Answers
Setting Scroll View Width GUILayout 1 Answer
How do I use function OnGui to display a 2D texture? 1 Answer
Text wobbles as Content changes 2 Answers
How do i merge these things? 1 Answer