2026-03-17 시네머신 카메라 묶음 수정. 여러 카메라릭에서 공유하도록 공통 시네머신카메라리스트 분리

This commit is contained in:
2026-03-17 02:55:00 +09:00
parent e52c17f322
commit 960a68d734
10 changed files with 144 additions and 5868 deletions

View File

@@ -43,7 +43,7 @@ protected override void Start()
if (currentTargetCam != null && currentTargetCam.Follow != null)
{
_controller = currentTargetCam.Follow.GetComponentInChildren<PlayerCharacterController>();
_controller = currentTargetCam.Follow.GetComponentInParent<PlayerCharacterController>();
}
if (_controller == null)

View File

@@ -0,0 +1,21 @@
using System.Collections.Generic;
using Unity.Cinemachine;
using UnityEngine;
using UnityEngine.Rendering;
public class GeneralCameraRig : CameraRigBase
{
//CameraRigBase에 전달용
[SerializeField] private List<CinemachineVirtualCameraBase> _myCameras = new List<CinemachineVirtualCameraBase>();
protected override IReadOnlyList<CinemachineVirtualCameraBase> CameraCandidates => _myCameras;
public override void GetInputAxes(List<IInputAxisOwner.AxisDescriptor> axes)
{
base.GetInputAxes(axes);
}
protected override CinemachineVirtualCameraBase ChooseCurrentCamera(Vector3 worldUp, float deltaTime)
{
return (CinemachineVirtualCameraBase)LiveChild;
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 1c04f8894370aab408215d8c6d9bfa1a