< Summary

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

Metrics

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

File(s)

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

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEditor;
 4using UnityEngine;
 5
 6namespace DCL.Skybox
 7{
 8    public static class RenderSatellite3DLayer
 9    {
 10        public static void RenderLayer(ref float timeOfTheDay, EditorToolMeasurements toolSize, Config3DSatellite 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.timeSpanStart);
 024            SkyboxEditorUtils.ClampToDayTime(ref config.timeSpanEnd);
 25
 26            // Fading
 027            RenderSimpleValues.RenderSepratedFloatFields(SkyboxEditorLiterals.LayerProperties.fade, SkyboxEditorLiterals
 28
 029            RenderSimpleValues.RenderPrefabInput(SkyboxEditorLiterals.Satellite3D.PREFAB, ref config.satellite);
 030            RenderSimpleValues.RenderFloatField(SkyboxEditorLiterals.Satellite3D.SIZE, ref config.satelliteSize);
 031            RenderSimpleValues.RenderFloatField(SkyboxEditorLiterals.Satellite3D.RADIUS, ref config.radius);
 032            RenderSimpleValues.RenderFloatField(SkyboxEditorLiterals.Satellite3D.Y_OFFSET, ref config.orbitYOffset);
 033            RenderSimpleValues.RenderFloatFieldAsSlider(SkyboxEditorLiterals.Satellite3D.INITIAL_POS, ref config.initial
 034            RenderSimpleValues.RenderFloatFieldAsSlider(SkyboxEditorLiterals.Satellite3D.HORIZON_PLANE, ref config.horiz
 035            RenderSimpleValues.RenderFloatFieldAsSlider(SkyboxEditorLiterals.Satellite3D.INCLINATION, ref config.inclina
 036            RenderSimpleValues.RenderFloatField(SkyboxEditorLiterals.LayerProperties.speed, ref config.movementSpeed);
 037            RenderSimpleValues.RenderEnumPopup(SkyboxEditorLiterals.Satellite3D.ROTATION_TYPE, ref config.satelliteRotat
 38
 39            // If fixed rotation
 040            if (config.satelliteRotation == RotationType.Fixed)
 41            {
 042                RenderSimpleValues.RenderVector3Field("Rotation", ref config.fixedRotation);
 43            }
 044            else if (config.satelliteRotation == RotationType.Rotate)
 45            {
 046                RenderSimpleValues.RenderVector3Field("Axis", ref config.rotateAroundAxis);
 047                RenderSimpleValues.RenderFloatField("Rotation Speed", ref config.rotateSpeed);
 48            }
 049        }
 50    }
 51}