No Code: Detect and visualize hands from a Sprite
An example on how to detect and visualize hands from a Sprite.
Last updated
An example on how to detect and visualize hands from a Sprite.
Last updated
This example demonstrates how to detect and visualize fingers in an image sprite using an , a , a and a . No code is needed for this example!
All Hand Tracking Unity plugin samples are no-code! You can find the code versions in the Examples
section of this documentation.
Open the Unity Project you created in the section.
Right-click on the Assets
folder and select Create > Scene
.
Type the scene's name. In this example, we'll use the name PictureDemoNC
.
After the scene is created, right-click on the scene and select GameObject > UI > Canvas
.
Navigate to the LightBuzz Prefabs
folder at Assets\LightBuzz Hand Tracking\Runtime\Prefabs
.
After connecting all the fields, navigate to the Canvas
to set the render options.
Change the Render Mode
to Screen Space - Camera
.
Then, set the Main Camera,
from the Scene tab, as the Render Camera
.
When all the render options are set, the result should look like the following image.
By following these steps, you will be able to detect and visualize fingers in an image sprite without a single line of code.
For this example, drag and drop the , , and prefabs into the Canvas.
Select the prefab and connect the Sprite
field to an image sprite. You can either use the demo image sprite lightbuzz-hand-tracking.png
included in the Assets/LightBuzz Hand Tracking/Runtime/Media
folder or create your own image sprite.