S2ENGINE HD 2023
User guide
×
Menu
Index

Game

Game section is used to configure the prefabs that will be loaded by the playerStart.
 
3.2.3.5. Game
1

Player prefab

1. Player prefab
The prefab of the player character you want PlayerStart must spawn when game level starts.
If you leave blank this slot no player prefab will be spawned by the playerStart, in this case you can manually insert a playerCharacter or a character, and cofigure it as the game player, into the scene if you need it. 
2

GUI prefab

2. GUI prefab
The prefab of the GUI (menu and player HUD) you want playerStart must spawn when game level starts.
If you leave blank this slot no GUI prefab will be spawned by the playerStart, in this case you can manually insert a GUIObject, and build a menu by using the GUI editor, into the scene if you need it. 
3

Loading prefab

3. Loading prefab
This is the prefab containing the loading screen page.
If you leave blank this slot the default loading screen s2script will be used, in this case you can customize the loading screen directly by modifying the script.
4

Player character name

4. Player character name
The name of the player character that the system recognizes when you set the player prefab (see below)
5

GUI object name

5. GUI object name
The name of the GUI object the systrem recognizes when you set the GUI prefab
 
When you set the player and GUI prefabs the system automatically recognize the name of the player character and the name of the GUI object.
They are necessary if you want to connect the objects you insert into a game scene to the player or the gui objects. For example you could need a trigger or a switch to send an event or a message to the player.
To make the system to recognize the player you must use a playerCharacter class object included into the EasyGamePack DLC or  you must set the "isPlayer" parameter if you use a basic character class object.
In the case of GUI name you must use a GUIObject object class.