< Summary

Class:DCL.Skybox.SkyboxEditorStyles
Assembly:SkyboxEditorAssembly
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Rendering/ProceduralSkybox/ToolProceduralSkybox/Scripts/Editor/Procedural Skybox/SkyboxEditorStyles.cs
Covered lines:0
Uncovered lines:20
Coverable lines:20
Total lines:61
Line coverage:0% (0 of 20)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
SkyboxEditorStyles()0%42600%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Rendering/ProceduralSkybox/ToolProceduralSkybox/Scripts/Editor/Procedural Skybox/SkyboxEditorStyles.cs

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEditor;
 4using UnityEngine;
 5
 6namespace DCL.Skybox
 7{
 8    public class SkyboxEditorStyles
 9    {
 10        private static SkyboxEditorStyles instance;
 11        public static SkyboxEditorStyles Instance
 12        {
 13            get
 14            {
 015                if (instance == null)
 16                {
 017                    instance = new SkyboxEditorStyles();
 18                }
 019                return instance;
 20            }
 21        }
 22        public GUIStyle foldoutStyle;
 23        public GUIStyle renderingMarkerStyle;
 24        public GUIStyle configurationStyle;
 25        public GUIStyle percentagePartStyle;
 26        public GUIStyle transitioningBoxStyle;
 27
 028        public SkyboxEditorStyles()
 29        {
 030            if (foldoutStyle == null)
 31            {
 032                foldoutStyle = new GUIStyle(EditorStyles.foldout);
 033                foldoutStyle.fixedWidth = 2;
 34            }
 35
 036            if (renderingMarkerStyle == null)
 37            {
 038                renderingMarkerStyle = new GUIStyle(EditorStyles.label);
 039                renderingMarkerStyle.fontSize = 18;
 40            }
 41
 042            if (configurationStyle == null)
 43            {
 044                configurationStyle = new GUIStyle();
 045                configurationStyle.alignment = TextAnchor.MiddleCenter;
 046                configurationStyle.margin = new RectOffset(150, 200, 0, 0);
 47            }
 48
 049            if (percentagePartStyle == null)
 50            {
 051                percentagePartStyle = new GUIStyle();
 052                percentagePartStyle.alignment = TextAnchor.MiddleCenter;
 53            }
 54
 055            if (transitioningBoxStyle == null)
 56            {
 057                transitioningBoxStyle = new GUIStyle("box");
 58            }
 059        }
 60    }
 61}

Methods/Properties

Instance()
SkyboxEditorStyles()