I want to start games from my own launcher on C#. I create new project, add a reference to SpaceEscape2 project (from examples) and I try to start game by clicking my button. But I receive System.NullReferenceException in SiliconStudio.Xenko.Engine.dll. What’s wrong? I don’t want to run it from exe file, I need to run it as my code.
Hi siziakov,
Could you give us a little bit more details?
It would be good to have the stack trace or a reproduction project.
Thanks!
I install the xenko engine at D:\3D Engines\Xenko.
For my projects and examples I use D:\3D Engines\Xenko\Projects folder.
From Xenko Studio I build the SpaceEscape2 example to the folder D:\3D Engines\Xenko\Projects\SpaceEscape2.
My own solution I place to D:\3D Engines\Xenko\Projects\TestLauncher (the solution of my project in attachment Download my project for Vusual Studio 2015 Express).
When I try to run game by pressing my button “Game 1” I have exception.
I need to run several games from one application, and I need to change some parameters of game in my own application. I find the game engine for this purposes and I try the xenko engine.
How I can to do this?