< Summary

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

Metrics

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

File(s)

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

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEngine.UI;
 4using UnityEngine;
 5
 6public class FontOnToggle : UIToggle
 7{
 8    public Text targetText;
 9
 10    public Font onFont;
 11
 12    public Font offFont;
 13
 014    protected override void OnValueChanged(bool isOn) { targetText.font = isOn ? onFont : offFont; }
 15}

Methods/Properties

OnValueChanged(System.Boolean)