< Summary

Class:AnimateHandOnInput
Assembly:Test
File(s):D:/--UnityProject/VR/VRExplorer_subjects/EscapeGameVR/Assets/Scripts/Test/VR/AnimateHandOnInput.cs
Covered lines:0
Uncovered lines:8
Coverable lines:8
Total lines:30
Line coverage:0% (0 of 8)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:2
Method coverage:0% (0 of 2)

Coverage History

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Start()0%0000%
Update()0%0000%

File(s)

D:/--UnityProject/VR/VRExplorer_subjects/EscapeGameVR/Assets/Scripts/Test/VR/AnimateHandOnInput.cs

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEngine;
 4using UnityEngine.Animations;
 5using UnityEngine.InputSystem;
 6public class AnimateHandOnInput : MonoBehaviour
 7{
 8    [SerializeField] InputActionProperty pinchAnimationAction;
 9    [SerializeField] InputActionProperty gripAnimationAction;
 10
 11
 12    [SerializeField] Animator handAnimator;
 13    // Start is called before the first frame update
 14    void Start()
 015    {
 16
 017    }
 18
 19    // Update is called once per frame
 20    void Update()
 021    {
 022        float triggerValue = pinchAnimationAction.action.ReadValue<float>();
 023        handAnimator.SetFloat("Trigger", triggerValue);
 24
 025        float gripValue = gripAnimationAction.action.ReadValue<float>();
 026        handAnimator.SetFloat("Grip", gripValue);
 27
 28        //Debug.Log(triggerValue);
 029    }
 30}

Methods/Properties

Start()
Update()