mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-04 07:19:22 +00:00
[DesktopVRSwitch] Handle CVRWorld- Post Processing & FOV settings.
This commit is contained in:
parent
70ae268149
commit
900c6646af
17 changed files with 62 additions and 48 deletions
|
@ -5,10 +5,11 @@ namespace NAK.DesktopVRSwitch.VRModeTrackers;
|
|||
|
||||
public class CameraFacingObjectTracker : MonoBehaviour
|
||||
{
|
||||
internal CameraFacingObject _cameraFacingObject;
|
||||
CameraFacingObject _cameraFacingObject;
|
||||
|
||||
void Start()
|
||||
{
|
||||
_cameraFacingObject = GetComponent<CameraFacingObject>();
|
||||
VRModeSwitchManager.OnPostVRModeSwitch += OnPostSwitch;
|
||||
}
|
||||
|
||||
|
@ -19,6 +20,7 @@ public class CameraFacingObjectTracker : MonoBehaviour
|
|||
|
||||
public void OnPostSwitch(bool intoVR)
|
||||
{
|
||||
// TODO: cache camera
|
||||
_cameraFacingObject.m_Camera = Utils.GetPlayerCameraObject(intoVR).GetComponent<Camera>();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue