Profile PictureA H Z A

Spark AR - IsOnScreen? Patch

$3
0 ratings

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.

Included the full version and a simplified one for simpler use cases. Simpe version only considers object center.

  • 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!

Add to cart

2 Patches

Spark AR Version
v181+
Size
35kb
Copy product URL
$3

Spark AR - IsOnScreen? Patch

0 ratings
Add to cart