RE: How to Invoke Button Function with Client Script
I’ve added a button with a beforeLoad UE script. When the user clicks the button, it should create a new instance of a custom record. As I understand, you need a client script to handle the button click. I seem to be having trouble invoking my button function, though. I set the name of the function when I created the button in the UE script. Then I defined the named function in my client script. But when the button is clicked, the function in the client script is never invoked. Anyone know what I’m missing?
Right. Referencing custom records can be funky sometimes, and I knew that line could cause problems. But, that still doesn’t explain why it’s not executing the log statement before it gets to the record creation. I should at least get a log, if the function is actually being invoked, then the script throws an error for the record creation. Follow me? Since I’m not even getting that initial log, that leads me to believe the function is not being invoked at all for some reason, and I can’t figure out why.