This commit is contained in:
NotAKidoS 2023-05-09 03:46:58 -05:00
parent 26441f8b1e
commit c7b16abd4f
27 changed files with 591 additions and 91 deletions

View 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"));
}
}