- Home /
Forcing a program to initialize inside Unity game.
Is there any possible way to initialize Program or Web Browser inside the Unity game window instead of Windows? I wanted to ask this because i think it will be good if you can, let's say.. start a web browser inside your game and leave it run in background mode while playing and listening or watching a YouTube video, or perhaps going to your website to confirm a license for the game, ext. idk something like that...
(Asking out of curiosity.) :v
Details:
Advanced C# Scripting, Challenge, Starting a Program or Web Browser inside Unity.
Answer by tanoshimi · Jun 19, 2016 at 08:54 PM
System.Diagnostics.Process.Start("Path/ProgramToRun.exe");
System.Diagnostics.Process.Start("Path/ProgramToRun.exe");
starts the program outside the Game, i meant to ask if it's possible to run it "Inside" the game window, but thanks anyway :)
Well you can write a simple web browser in C# and render its output to a RenderTexture placed on some object in the game, I guess. There's plenty of open source browsers available that you can exa$$anonymous$$e their code, but it's an awful lot of effort!
Thanks :) i will try (I'm gonna die cause of C# now ._. )