< Summary

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
RenderLayer(...)0%6200%

File(s)

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

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEditor;
 4using UnityEngine;
 5
 6namespace DCL.Skybox
 7{
 8    public static class RenderPlanar3DLayer
 9    {
 10        public static void RenderLayer(ref float timeOfTheDay, EditorToolMeasurements toolSize, Config3DPlanar config)
 11        {
 12
 13            // name In Editor
 014            EditorGUILayout.BeginHorizontal();
 015            EditorGUILayout.LabelField(SkyboxEditorLiterals.Layers.layerName, GUILayout.Width(150), GUILayout.ExpandWidt
 016            config.nameInEditor = EditorGUILayout.TextField(config.nameInEditor, GUILayout.Width(200), GUILayout.ExpandW
 017            EditorGUILayout.EndHorizontal();
 18
 019            EditorGUILayout.Separator();
 20
 21            // Time Span
 022            RenderSimpleValues.RenderSepratedFloatFields(SkyboxEditorLiterals.LayerProperties.timeSpan, SkyboxEditorLite
 023            SkyboxEditorUtils.ClampToDayTime(ref config.timeSpan_start);
 024            SkyboxEditorUtils.ClampToDayTime(ref config.timeSpan_End);
 25
 26            // Fading
 027            RenderSimpleValues.RenderSepratedFloatFields(SkyboxEditorLiterals.LayerProperties.fade, SkyboxEditorLiterals
 28
 029            GameObject tempPrefab = config.prefab;
 030            RenderSimpleValues.RenderPrefabInput("Prefab", ref tempPrefab);
 031            config.AssignNewPrefab(tempPrefab);
 32
 33
 034            if (!config.validPrefab)
 35            {
 036                Color color = GUI.color;
 037                GUI.color = Color.red;
 038                EditorGUILayout.LabelField(config.inValidStr, GUILayout.Width(400), GUILayout.ExpandWidth(false));
 039                GUI.color = color;
 040                config.prefab = null;
 41            }
 42
 043            RenderSimpleValues.RenderFloatField(SkyboxEditorLiterals.Planar3D.SCENE, ref config.radius);
 044            RenderSimpleValues.RenderFloatField(SkyboxEditorLiterals.Planar3D.Y_POS, ref config.yPos);
 045            RenderSimpleValues.RenderBoolField(SkyboxEditorLiterals.Planar3D.FOLLOW_CAMERA, ref config.followCamera);
 046            RenderSimpleValues.RenderBoolField(SkyboxEditorLiterals.Planar3D.RENDER_IN_MAIN_CAMERA, ref config.renderWit
 047        }
 48    }
 49}