mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
15 lines
No EOL
440 B
C#
15 lines
No EOL
440 B
C#
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"));
|
|
}
|
|
} |