< Summary

Class:SkyboxCameraBehaviour
Assembly:ProceduralSkybox
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Rendering/ProceduralSkybox/ToolProceduralSkybox/Scripts/Functionality/SkyboxCameraBehaviour.cs
Covered lines:0
Uncovered lines:10
Coverable lines:10
Total lines:29
Line coverage:0% (0 of 10)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
LateUpdate()0%6200%
AssignCamera(...)0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Rendering/ProceduralSkybox/ToolProceduralSkybox/Scripts/Functionality/SkyboxCameraBehaviour.cs

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEngine;
 4
 5public class SkyboxCameraBehaviour : MonoBehaviour
 6{
 7    [SerializeField] private GameObject target;
 8    private Camera cam;
 9    private Camera targetCam;
 10
 11    private void LateUpdate()
 12    {
 013        if (target == null)
 14        {
 015            return;
 16        }
 17
 018        this.transform.position = target.transform.position;
 019        this.transform.rotation = target.transform.rotation;
 020        cam.fieldOfView = targetCam.fieldOfView;
 021    }
 22
 23    public void AssignCamera(Camera targetCamComponent, Camera skyboxCamera)
 24    {
 025        target = targetCamComponent.gameObject;
 026        cam = skyboxCamera;
 027        targetCam = targetCamComponent;
 028    }
 29}