How to generate a specified object (such as a ball) at a specific location in the scene at a certain
How to generate a specified object (such as a ball) at a specific location in the scene at a certain time (such as when opening the mouth)
Answers
-
Hi @bowen wang!
Do you want to keep the sphere on the screen after you open the mouth?
If not, here's a brief guide on achieving this effect:Add a sphere
Select the Orthographic camera and add a new "Script" component
Click on "None" in the added script and choose "Helper script" > "Behavior"
Configure the settings as follows:
- Trigger: Face Event
- Event type: Mouth Opened
- Allow: Always
- Response Type: Set Enabled
Click on "Target" and select your Sphere
Hide the Sphere in the Objects panel
Done!
Link to the Project files0 -
To generate a specified object, like a ball, at a specific location in the scene when opening the mouth, you can use a combination of animation and scripting. By detecting the mouth opening using techniques like facial recognition or audio analysis, you can trigger a script to instantiate the ball object at the desired location at the designated time, creating an engaging and interactive experience for the user.
0
Categories
- 0 All Categories
- Snap AR | Categories
- 2K Lens Studio
- 150 Camera Kit
- 16 Spectacles