< Summary

Class:TMPColorOnToggle
Assembly:AvatarEditorHUD
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/AvatarEditorHUD/Scripts/ImageColorOnToggle.cs
Covered lines:1
Uncovered lines:0
Coverable lines:1
Total lines:13
Line coverage:100% (1 of 1)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
OnValueChanged(...)0%330100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/AvatarEditorHUD/Scripts/ImageColorOnToggle.cs

#LineLine coverage
 1using TMPro;
 2using UnityEngine;
 3
 4public class TMPColorOnToggle : UIToggle
 5{
 6    [SerializeField] private TextMeshProUGUI targetText;
 7
 8    [SerializeField] private Color onColor;
 9
 10    [SerializeField] private Color offColor;
 11
 64012    protected override void OnValueChanged(bool isOn) { targetText.color = isOn ? onColor : offColor; }
 13}

Methods/Properties

OnValueChanged(System.Boolean)