< Summary

Class:NFTShapeConfig
Assembly:MainScripts
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Components/LoadableShapes/NFTShape/NFTShapeConfig.cs
Covered lines:0
Uncovered lines:13
Coverable lines:13
Total lines:27
Line coverage:0% (0 of 13)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
NFTShapeConfig()0%2100%
OnEnable()0%2100%
CleanUp()0%6200%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Components/LoadableShapes/NFTShape/NFTShapeConfig.cs

#LineLine coverage
 1using UnityEngine;
 2
 3public class NFTShapeConfig : ScriptableObject
 4{
 05    public float loadingMinDistance = 30;
 06    public float hqImgMinDistance = 7;
 07    public float hqImgFacingDotProdMinValue = 0.4f;
 08    public float hqImgInFrontDotProdMinValue = 0.2f;
 09    public int hqImgResolution = 1024;
 010    public int hqGifResolution = 512;
 11    public bool verbose = false;
 12
 13#if UNITY_EDITOR
 14    private void OnEnable()
 15    {
 016        Application.quitting -= CleanUp;
 017        Application.quitting += CleanUp;
 018    }
 19
 20    private void CleanUp()
 21    {
 022        Application.quitting -= CleanUp;
 023        if (UnityEditor.AssetDatabase.Contains(this))
 024            Resources.UnloadAsset(this);
 025    }
 26#endif
 27}