Block run without the launcher

Some users may try to run the game outside the launcher, to prevent this, you need to configure SGPatcher to check the launch through the launcher.

It is necessary to add the LauncherCheck scene to the BuildSettings. The scene is located in the following path: Assets/SIDGIN/SIDGIN.Patcher/Demo/Scenes/LauncherCheck.unity.

image-1591556109939.png

If users try to start the game not through the launcher, they will see the following message:

step19.png


Customize LauncherCheck scene


You can also change the standard screen to yours. Add the script ”CheckStartFromLauncher” to any object in the scene.

image-1589023418205.png

In the ”Message Object” field specify the object that you want to enable if the game is running not through the launcher. The script will automatically load the scene with index 1 if the game is launched through the launcher.

This script also has a CloseApplication method. Executing this method will close the game.

image-1589023605899.png

 


Revision #1
Created Sun, Jun 28, 2020 12:27 PM by Admin
Updated Thu, Jul 30, 2020 10:09 AM by Admin