Spark AR - IsOnScreen? Patch
This patch for Meta Spark checks if an object is within the screen area and outputs a true boolean if it is.
You can adjust the sensitivity to determine how strictly the object needs to be inside the screen space.
When sensitivity is set to 0, the output is true if the object's center origin is within the screen. Increasing the sensitivity will expand the area around the object that is considered, allowing the patch to account for more of the object till considering all the bounding box area with 1 value. This ensures that even if the object's center is off-screen, but a significant part of it is still visible, it will be detected as on screen.
- All I/O have descriptions.
- Works with any project.
- Responsive to any screen size.
Why wait? Add it to your Spark AR toolkit today!
Have questions? Feel free to contact me on Instagram!
If you like it, please RATE ⭐️⭐️⭐️⭐️⭐️ to help more people know about it!
2 Patches