This content has been marked as final. Show 1 reply
To make the Scriptable Object Component (SOC) do something when an event is fired by the embedded control you need to write an event handler (in the SOC script).
For example, here is some code from one of our custom controls
If state = 0 Then
state = 1
state = 0
When you click on the pushbutton control the Click event will be raised and this routine will be called. It changes the state of a global variable and causes the SOC to recalculate.
Of course, I can't go into all of the details here but every control that can be embedded in a SOC will most likely fire an event...so you need to write the code to handle the event.
Check out some of the other custom control scripts and search the collab for "scriptable" for more examples.
I hope this helps.