Class CameraPatch
- Namespace
- ConfigurableWarning.Patches
- Assembly
- RedstoneWizard08.ContentLibrary.dll
Patches for the camera.
[HarmonyPatch]
public class CameraPatch
- Inheritance
-
CameraPatch
- Inherited Members
Methods
SaveToDesktop(CameraRecording, out string)
Patches the SaveToDesktop(out string) method to save videos to a custom location.
[HarmonyPatch(typeof(CameraRecording), "SaveToDesktop")]
[HarmonyPrefix]
public static bool SaveToDesktop(CameraRecording __instance, out string videoFileName)
Parameters
__instance
CameraRecordingThe current instance of a MainCamera.
videoFileName
stringThe saved video file path.
Returns
- bool
Whether or not to continue executing the rest of the method.
Update(MainCamera)
Updates the camera's field of view.
[HarmonyPostfix]
[HarmonyPatch(typeof(MainCamera), "Update")]
public static void Update(MainCamera __instance)
Parameters
__instance
MainCameraThe current instance of a MainCamera.