Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
using Leap.Unity;
using Leap.Unity.RuntimeGizmos;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Leap.Unity.LeapPaint {
public class RightHandFistStrengthBarGizmo : MonoBehaviour {
public Color color;
float _fistStrength = 0f;
void Update() {
var hand = Hands.Right;
if (hand != null) {
_fistStrength = hand.GetFistStrength();
}
BarGizmo.Render(_fistStrength, this.transform, color, 0.25f);
}
}
}2046045a2This file is pinned to the selected release. Download the original to open it in your design tool.