Code updates
This commit is contained in:
parent
a430310324
commit
393de5e06a
14 changed files with 216 additions and 31 deletions
14
Patches/CinemachineVirtualCamera_CalculateNewState_Patch.cs
Normal file
14
Patches/CinemachineVirtualCamera_CalculateNewState_Patch.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
using Cinemachine;
|
||||
using HarmonyLib;
|
||||
|
||||
namespace SpacemarketSimulator.Patches
|
||||
{
|
||||
[HarmonyPatch(typeof(CinemachineVirtualCamera), "CalculateNewState")]
|
||||
public static class CinemachineVirtualCamera_CalculateNewState_Patch
|
||||
{
|
||||
public static void Postfix(ref CameraState __result)
|
||||
{
|
||||
__result.Lens.FarClipPlane = 1500;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue