How to take picture?

hello there, I wonder if there’s a way to make capture button like in:
https://www.8thwall.com/8thwall/capturephoto-aframe

I use the face effect, I wonder how it could be done since I already tried several ways to implement the feature, but to no avail, since it have different workflow I guess ? any help is appreciated.

Hi, welcome to the forums!

We’re currently working on this as a sample project feature. In the meantime you can build it out yourself by following the instructions in this thread:

I apologize but I couldn’t get the script working on a button, the script supposed to be dragged on a UI button right ? I couldnt find it on new component section too ? or I missing something perhaps ?

it said “no component found in file”, I tried it with Js. and Ts. I am sorry I am new to this workflow.

The code itself isn’t a custom component, it’s moreso to show you how you would create the “takeScreenshot” function and then you could use it in your custom component. Like a button click etc.

Make sure you check out this guide: Custom Components | 8th Wall