mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-03 14:59:23 +00:00
broken
This commit is contained in:
parent
26441f8b1e
commit
c7b16abd4f
27 changed files with 591 additions and 91 deletions
15
CameraFixes/HarmonyPatches.cs
Normal file
15
CameraFixes/HarmonyPatches.cs
Normal file
|
@ -0,0 +1,15 @@
|
|||
using HarmonyLib;
|
||||
using UnityEngine;
|
||||
using static ABI_RC.Core.CVRTools;
|
||||
|
||||
namespace NAK.CameraFixes.HarmonyPatches;
|
||||
|
||||
class CVRCamControllerPatches
|
||||
{
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(CVRCamController), nameof(CVRCamController.Start))]
|
||||
static void Postfix_CVRCamController_Start(ref CVRCamController __instance)
|
||||
{
|
||||
SetGameObjectLayerRecursive(__instance.gameObject, LayerMask.NameToLayer("UI Internal"));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue