< Summary

Class:UIElementDragger
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/UI/UIElementDragger.cs
Covered lines:0
Uncovered lines:3
Coverable lines:3
Total lines:12
Line coverage:0% (0 of 3)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:1
Method coverage:0% (0 of 1)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
OnDrag(...)0%2100%

File(s)

/github/workspace/Assets/Scripts/UI/UIElementDragger.cs

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEngine;
 4using UnityEngine.UI;
 5using UnityEngine.EventSystems;
 6
 7[RequireComponent(typeof(UIElementMouseCapturer))]
 8public class UIElementDragger : EventTrigger {
 09  public override void OnDrag(PointerEventData eventData) {
 010    transform.position = new Vector2(Input.mousePosition.x, Input.mousePosition.y);
 011  }
 12}