- Home /
Question by
metritrack · Aug 12, 2021 at 10:04 PM ·
windowsrendertexturelibraryembedding
How to use a Render Textures Native Pointer in another process
I am currently embedding my Unity project into a WPF application using a HwndHost on the WPF side and passing its handle to the -parentHWND commandline argument when starting Unity (Similar to this https://stackoverflow.com/questions/44059182/embed-unity3d-app-inside-wpf-application/44059700#44059700).
The limitation to this is that this method only allows for one view.
I'm looking into adding additional views to the WPF app by passing a Render Texture's native pointer through an IPC to WPF to be rendered on the UI with SharpDX.
The issue I am running into is an Access Violation Exception on the WPF/SharpDX side. Is it possible for another process to access a render texture that Unity created?
Comment