- Home /
About launching Unity application of UnityMain function in C ++ application using DirectX11
Hi
Let me ask you two questions.
I'm developing a c ++ Windows standalone game application.
I want to incorporate a standalone game created in Unity into my game.
At that time, referring to the following Unity document, UnityPlayer.dll is read and called by the UnityMain function.
https://docs.unity3d.com/ja/2019.4/Manual/UnityasaLibrary-Windows.html
-Question 1
Even if I pass an instance of the game application (HINSTANCE) and a window instance (HWND) to UnityMain,
they are not displayed in the same application.
(In UWP, it is confirmed that it is displayed by passing the form)
-Question 2
When the UnityMain function is executed, the update of the application from which it is executed stops.
I can understand the principle of stopping to some extent, Is there any way I can't stop it?
Used Unity Ver 2019.4
Please help me
Your answer
Follow this Question
Related Questions
DllNotFoundException on Mac OS X, only when Playing in Editor 0 Answers
Why does this SUPER simple line of code take 35% or my processing power? 1 Answer
No .NET 2.0 framework? 0 Answers
Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers
How can i use this using : "Windows.Media.Capture.Frames" ? 0 Answers