< 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:27
Line coverage:0% (0 of 10)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:2
Method coverage:0% (0 of 2)

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 UnityEngine;
 2
 3public class SkyboxCameraBehaviour : MonoBehaviour
 4{
 5    [SerializeField] private GameObject target;
 6    private Camera cam;
 7    private Camera targetCam;
 8
 9    private void LateUpdate()
 10    {
 011        if (target == null)
 12        {
 013            return;
 14        }
 15
 016        this.transform.position = target.transform.position;
 017        this.transform.rotation = target.transform.rotation;
 018        cam.fieldOfView = targetCam.fieldOfView;
 019    }
 20
 21    public void AssignCamera(Camera targetCamComponent, Camera skyboxCamera)
 22    {
 023        target = targetCamComponent.gameObject;
 024        cam = skyboxCamera;
 025        targetCam = targetCamComponent;
 026    }
 27}