Accessing Objects via code
I understand javascript.... I'm just struggling with how to access objects.
I have an image object for example. I cannot figure out how to reference it.
I want to write a function to run when this image is tapped.
I tried the behavior script option but I find this very limiting.. I would rather control everything in code.
Hi Jonathon,
There's two ways to access the Image object. You can access it via the object itself
Or accessing the image directly
You can see more information here: https://lensstudio.snapchat.com/guides/scripting/scripting-overview/
Let me know if you need any clarification.
Thanks,
Jonathan