Hello everyone, I was wondering if anyone could help me a little bit.
I installed GUIX demo, made a camvas, added a few objects, saved it, and then I added the showCanvas script to my empty scene. So, the canvas is showing, now I want to interact with the objects so I made the following:
A label, a textField called joinIPField, and a button called joinButton.
So, GUIX automatically adds the following code:
function joinButton_Click( sender : System.Object, eventData : GUIX.EventData )
{
//Enter Your Click Handling Code Here...
}
.
So then, I add my own little piece of code:
.
.
function joinButton_Click( sender : System.Object, eventData : GUIX.EventData )
{
ConnectToServer(joinIPField.Text);
}
Now, the problem is that it doesn’t work. How do I access a GUI object property using GUIX?
The error message is 125Assets/GUIX Generated/mainMenuCanvas/mainMenuCanvas_Logic.js(19,10): BCE0044: expecting }, found ‘joinIPField’.
Thanks very much for your help!
– Kevin