< Summary

Class:TMPFontOnToggle
Assembly:AvatarEditorHUD
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/AvatarEditorHUD/Scripts/TMPFontOnToggle.cs
Covered lines:1
Uncovered lines:0
Coverable lines:1
Total lines:16
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/TMPFontOnToggle.cs

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using TMPro;
 4using UnityEngine.UI;
 5using UnityEngine;
 6
 7public class TMPFontOnToggle : UIToggle
 8{
 9    public TextMeshProUGUI targetText;
 10
 11    public TMP_FontAsset onFont;
 12
 13    public TMP_FontAsset offFont;
 14
 90415    protected override void OnValueChanged(bool isOn) { targetText.font = isOn ? onFont : offFont; }
 16}

Methods/Properties

OnValueChanged(System.Boolean)