// Token: 0x06005F5F RID: 24415 RVA: 0x00217E4C File Offset: 0x0021624C private void OnRequestScreenshot(VREvent_t vrEvent) { uint handle = vrEvent.data.screenshot.handle; EVRScreenshotType type = (EVRScreenshotType)vrEvent.data.screenshot.type; if (type == EVRScreenshotType.StereoPanorama) { string screenshotFilename = this.GetScreenshotFilename(handle, EVRScreenshotPropertyFilenames.Preview); string screenshotFilename2 = this.GetScreenshotFilename(handle, EVRScreenshotPropertyFilenames.VR); if (screenshotFilename == null || screenshotFilename2 == null) { return; } SteamVR_Utils.TakeStereoScreenshot(handle, new GameObject("screenshotPosition") { transform = { position = SteamVR_Render.Top().transform.position, rotation = SteamVR_Render.Top().transform.rotation, localScale = SteamVR_Render.Top().transform.lossyScale } }, 32, 0.064f, ref screenshotFilename, ref screenshotFilename2); OpenVR.Screenshots.SubmitScreenshot(handle, type, screenshotFilename, screenshotFilename2); } }
public static ScreenshotHandle AddVRScreenshotToLibrary(EVRScreenshotType eType, string pchFilename, string pchVRFilename) { InteropHelp.TestIfAvailableClient(); using InteropHelp.UTF8StringHandle pchFilename2 = new InteropHelp.UTF8StringHandle(pchFilename); using InteropHelp.UTF8StringHandle pchVRFilename2 = new InteropHelp.UTF8StringHandle(pchVRFilename); return((ScreenshotHandle)NativeMethods.ISteamScreenshots_AddVRScreenshotToLibrary(CSteamAPIContext.GetSteamScreenshots(), eType, pchFilename2, pchVRFilename2)); }
/// <summary> /// <para> Adds a VR screenshot to the user's screenshot library from disk in the supported type.</para> /// <para> pchFilename should be the normal 2D image used in the library view</para> /// <para> pchVRFilename should contain the image that matches the correct type</para> /// <para> The return value is a handle that is valid for the duration of the game process and can be used to apply tags.</para> /// <para> JPEG, TGA, and PNG formats are supported.</para> /// </summary> public static ScreenshotHandle AddVRScreenshotToLibrary(EVRScreenshotType eType, string pchFilename, string pchVRFilename) { InteropHelp.TestIfAvailableClient(); using (var pchFilename2 = new InteropHelp.UTF8StringHandle(pchFilename)) using (var pchVRFilename2 = new InteropHelp.UTF8StringHandle(pchVRFilename)) { return((ScreenshotHandle)NativeMethods.ISteamScreenshots_AddVRScreenshotToLibrary(eType, pchFilename2, pchVRFilename2)); } }
// Token: 0x0600084C RID: 2124 RVA: 0x0000EE48 File Offset: 0x0000D048 public static ScreenshotHandle AddVRScreenshotToLibrary(EVRScreenshotType eType, string pchFilename, string pchVRFilename) { InteropHelp.TestIfAvailableClient(); ScreenshotHandle result; using (InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchFilename)) { using (InteropHelp.UTF8StringHandle utf8StringHandle2 = new InteropHelp.UTF8StringHandle(pchVRFilename)) { result = (ScreenshotHandle)NativeMethods.ISteamScreenshots_AddVRScreenshotToLibrary(CSteamAPIContext.GetSteamScreenshots(), eType, utf8StringHandle, utf8StringHandle2); } } return(result); }
void OnEnable() { StartCoroutine(RenderLoop()); SteamVR_Events.InputFocus.Listen(OnInputFocus); SteamVR_Events.System(EVREventType.VREvent_RequestScreenshot).Listen(OnRequestScreenshot); #if UNITY_2017_1_OR_NEWER Application.onBeforeRender += OnBeforeRender; #else Camera.onPreCull += OnCameraPreCull; #endif var types = new EVRScreenshotType[] { EVRScreenshotType.StereoPanorama }; OpenVR.Screenshots.HookScreenshot(types); }
public static ScreenshotHandle AddVRScreenshotToLibrary(EVRScreenshotType eType, string pchFilename, string pchVRFilename) { ScreenshotHandle handle3; InteropHelp.TestIfAvailableClient(); using (InteropHelp.UTF8StringHandle handle = new InteropHelp.UTF8StringHandle(pchFilename)) { using (InteropHelp.UTF8StringHandle handle2 = new InteropHelp.UTF8StringHandle(pchVRFilename)) { handle3 = (ScreenshotHandle)NativeMethods.ISteamScreenshots_AddVRScreenshotToLibrary(eType, handle, handle2); } } return(handle3); }
// Token: 0x06005F60 RID: 24416 RVA: 0x00217F24 File Offset: 0x00216324 private void OnEnable() { base.StartCoroutine(this.RenderLoop()); SteamVR_Events.InputFocus.Listen(new UnityAction <bool>(this.OnInputFocus)); SteamVR_Events.System(EVREventType.VREvent_Quit).Listen(new UnityAction <VREvent_t>(this.OnQuit)); SteamVR_Events.System(EVREventType.VREvent_RequestScreenshot).Listen(new UnityAction <VREvent_t>(this.OnRequestScreenshot)); Camera.onPreCull = (Camera.CameraCallback)Delegate.Combine(Camera.onPreCull, new Camera.CameraCallback(this.OnCameraPreCull)); if (SteamVR.instance == null) { base.enabled = false; return; } EVRScreenshotType[] pSupportedTypes = new EVRScreenshotType[] { EVRScreenshotType.StereoPanorama }; OpenVR.Screenshots.HookScreenshot(pSupportedTypes); }
void OnEnable() { StartCoroutine("RenderLoop"); SteamVR_Events.InputFocus.Listen(OnInputFocus); SteamVR_Events.System(EVREventType.VREvent_Quit).Listen(OnQuit); SteamVR_Events.System(EVREventType.VREvent_RequestScreenshot).Listen(OnRequestScreenshot); var vr = SteamVR.instance; if (vr == null) { enabled = false; return; } var types = new EVRScreenshotType[] { EVRScreenshotType.StereoPanorama }; OpenVR.Screenshots.HookScreenshot(types); }
// Token: 0x06000DD0 RID: 3536 RVA: 0x00057A6C File Offset: 0x00055C6C private void OnEnable() { base.StartCoroutine(this.RenderLoop()); SteamVR_Events.InputFocus.Listen(new UnityAction <bool>(this.OnInputFocus)); SteamVR_Events.System(EVREventType.VREvent_Quit).Listen(new UnityAction <VREvent_t>(this.OnQuit)); SteamVR_Events.System(EVREventType.VREvent_RequestScreenshot).Listen(new UnityAction <VREvent_t>(this.OnRequestScreenshot)); Application.onBeforeRender += this.OnBeforeRender; if (SteamVR.instance == null) { base.enabled = false; return; } EVRScreenshotType[] pSupportedTypes = new EVRScreenshotType[] { EVRScreenshotType.StereoPanorama }; OpenVR.Screenshots.HookScreenshot(pSupportedTypes); }
void OnEnable() { StartCoroutine("RenderLoop"); SteamVR_Utils.Event.Listen("input_focus", OnInputFocus); SteamVR_Utils.Event.Listen("Quit", OnQuit); SteamVR_Utils.Event.Listen("RequestScreenshot", OnRequestScreenshot); var vr = SteamVR.instance; if (vr == null) { enabled = false; return; } var types = new EVRScreenshotType[] { EVRScreenshotType.StereoPanorama }; OpenVR.Screenshots.HookScreenshot(types); }
void OnEnable() { StartCoroutine(RenderLoop()); SteamVR_Events.InputFocus.Listen(OnInputFocus); SteamVR_Events.System(EVREventType.VREvent_Quit).Listen(OnQuit); SteamVR_Events.System(EVREventType.VREvent_RequestScreenshot).Listen(OnRequestScreenshot); #if UNITY_2017_1_OR_NEWER Application.onBeforeRender += OnBeforeRender; #elif !(UNITY_5_3 || UNITY_5_2 || UNITY_5_1 || UNITY_5_0) Camera.onPreCull += OnCameraPreCull; #endif var vr = SteamVR.instance; if (vr == null) { enabled = false; return; } var types = new EVRScreenshotType[] { EVRScreenshotType.StereoPanorama }; OpenVR.Screenshots.HookScreenshot(types); }
private void OnRequestScreenshot(VREvent_t vrEvent) { uint handle = vrEvent.data.screenshot.handle; EVRScreenshotType type = (EVRScreenshotType)vrEvent.data.screenshot.type; if (type == EVRScreenshotType.StereoPanorama) { string previewFilename = GetScreenshotFilename(handle, EVRScreenshotPropertyFilenames.Preview); string VRFilename = GetScreenshotFilename(handle, EVRScreenshotPropertyFilenames.VR); if (previewFilename != null && VRFilename != null) { GameObject gameObject = new GameObject("screenshotPosition"); gameObject.transform.position = Top().transform.position; gameObject.transform.rotation = Top().transform.rotation; gameObject.transform.localScale = Top().transform.lossyScale; SteamVR_Utils.TakeStereoScreenshot(handle, gameObject, 32, 0.064f, ref previewFilename, ref VRFilename); OpenVR.Screenshots.SubmitScreenshot(handle, type, previewFilename, VRFilename); } } }
public EVRCompositorError RequestScreenshot(EVRScreenshotType type,string pchDestinationFileName,string pchVRDestinationFileName) { EVRCompositorError result = FnTable.RequestScreenshot(type,pchDestinationFileName,pchVRDestinationFileName); return result; }
public static bool IsScreenshotsHooked() => default; // 0x0000000180837220-0x0000000180837270 public static ScreenshotHandle AddVRScreenshotToLibrary(EVRScreenshotType eType, string pchFilename, string pchVRFilename) => default; // 0x0000000180836FE0-0x00000001808371D0
public EVRScreenshotError SubmitScreenshot(uint screenshotHandle,EVRScreenshotType type,string pchSourcePreviewFilename,string pchSourceVRFilename) { EVRScreenshotError result = FnTable.SubmitScreenshot(screenshotHandle,type,pchSourcePreviewFilename,pchSourceVRFilename); return result; }
public EVRScreenshotError HookScreenshot(EVRScreenshotType [] pSupportedTypes) { EVRScreenshotError result = FnTable.HookScreenshot(pSupportedTypes,(int) pSupportedTypes.Length); return result; }
public EVRScreenshotError RequestScreenshot(ref uint pOutScreenshotHandle,EVRScreenshotType type,string pchPreviewFilename,string pchVRFilename) { pOutScreenshotHandle = 0; EVRScreenshotError result = FnTable.RequestScreenshot(ref pOutScreenshotHandle,type,pchPreviewFilename,pchVRFilename); return result; }
public EVRScreenshotError TakeStereoScreenshot(ref uint pOutScreenshotHandle, string pchPreviewFilename, string pchVRFilename) => default; // 0x00000001811DF9C0-0x00000001811DF9F0 public EVRScreenshotError SubmitScreenshot(uint screenshotHandle, EVRScreenshotType type, string pchSourcePreviewFilename, string pchSourceVRFilename) => default; // 0x00000001811DF990-0x00000001811DF9C0
/// Adds a VR screenshot to the user's screenshot library from disk in the supported type. /// pchFilename should be the normal 2D image used in the library view /// pchVRFilename should contain the image that matches the correct type /// The return value is a handle that is valid for the duration of the game process and can be used to apply tags. /// JPEG, TGA, and PNG formats are supported. public static ScreenshotHandle AddVRScreenshotToLibrary(EVRScreenshotType eType, string pchFilename, string pchVRFilename) { return((ScreenshotHandle)0); }
/// <summary> /// <para> Adds a VR screenshot to the user's screenshot library from disk in the supported type.</para> /// <para> pchFilename should be the normal 2D image used in the library view</para> /// <para> pchVRFilename should contain the image that matches the correct type</para> /// <para> The return value is a handle that is valid for the duration of the game process and can be used to apply tags.</para> /// <para> JPEG, TGA, and PNG formats are supported.</para> /// </summary> public static ScreenshotHandle AddVRScreenshotToLibrary(EVRScreenshotType eType, string pchFilename, string pchVRFilename) { InteropHelp.TestIfAvailableClient(); using (var pchFilename2 = new InteropHelp.UTF8StringHandle(pchFilename)) using (var pchVRFilename2 = new InteropHelp.UTF8StringHandle(pchVRFilename)) { return (ScreenshotHandle)NativeMethods.ISteamScreenshots_AddVRScreenshotToLibrary(eType, pchFilename2, pchVRFilename2); } }
// Token: 0x06001FF1 RID: 8177 RVA: 0x0009E3DD File Offset: 0x0009C5DD public EVRScreenshotError RequestScreenshot(ref uint pOutScreenshotHandle, EVRScreenshotType type, string pchPreviewFilename, string pchVRFilename) { pOutScreenshotHandle = 0U; return(this.FnTable.RequestScreenshot(ref pOutScreenshotHandle, type, pchPreviewFilename, pchVRFilename)); }
// Token: 0x06001FF7 RID: 8183 RVA: 0x0009E466 File Offset: 0x0009C666 public EVRScreenshotError SubmitScreenshot(uint screenshotHandle, EVRScreenshotType type, string pchSourcePreviewFilename, string pchSourceVRFilename) { return(this.FnTable.SubmitScreenshot(screenshotHandle, type, pchSourcePreviewFilename, pchSourceVRFilename)); }
public static extern uint ISteamScreenshots_AddVRScreenshotToLibrary(EVRScreenshotType eType, InteropHelp.UTF8StringHandle pchFilename, InteropHelp.UTF8StringHandle pchVRFilename);
} // 0x00000001811DFA10-0x00000001811DFB20 // Methods public EVRScreenshotError RequestScreenshot(ref uint pOutScreenshotHandle, EVRScreenshotType type, string pchPreviewFilename, string pchVRFilename) => default; // 0x00000001811DF960-0x00000001811DF990