Api Function calls vs Custom Trigger sender and reciever
I was wondering if theres a significant performance difference between referencing a script, and subsequent function, in comparison to setting up custom trigger calls that send in the one script and are listened to by the recieving script?
As far as I am aware, API Function calls can't be used in visual scripting, whereas custom triggers are incredibly easy to setup. ( as described here https://support.lensstudio.snapchat.com/hc/en-us/community/posts/360078506611-Visual-Scripting-Triggers- ) My personal tendency is to use the custom trigger method, but I am afraid of performance slowdown or other issues.
I also discovered that the Snapchat Asset "Head Tilt" uses a mix of api function calls and custom trigger events to monitor and react to the user's input. Why this mix is made, I don't really understand.
code here: https://support.lensstudio.snapchat.com/hc/en-us/community/posts/360062407192-Head-Tilt-Left-Right
Thanks in advance! I hope to improve the efficiency and elegance of my coding with your help!