Fullscreen
Overview
The GamePush SDK allows to control fullscreen mode. SDK methods allow you to expand the game to full screen, exit full screen mode. You can also switch the operating mode to the opposite with one command.
List of methods FREE:
- JavaScript
- Construct 3
- Unity
// Enter fullscreen mode
gp.fullscreen.open();
// Exit fullscreen mode
gp.fullscreen.close();
// Toggle fullscreen mode
gp.fullscreen.toggle();
→
System
On start of layoutenter fullscreen mode
exit fullscreen mode
toggle fullscreen mode
Add action
Legend
System
GamePush
System›Construct 3 System object
GamePush›GamePush plugin
// Enter fullscreen mode
GP_Fullscreen.Open(OnOpen);
// Exit fullscreen mode
GP_Fullscreen.Close(OnClose);
// Toggle fullscreen mode
GP_Fullscreen.Toggle();
Checking for fullscreen mode FREE:
- JavaScript
- Construct 3
- Unity
gp.fullscreen.isEnabled;
fullscreen mode is enabled
Add action
Legend
GamePush
GamePush›GamePush plugin
Not implemented
Events list:
- JavaScript
- Construct 3
- Unity
gp.fullscreen.on('open', () => {});
gp.fullscreen.on('close', () => {});
gp.fullscreen.on('change', () => {});
→
GamePush
Fullscreen: On openentered fullscreen
Add action
→
GamePush
Fullscreen: On closeexited fullscreen
Add action
→
GamePush
Fullscreen: On changefullscreen state changed
Add action
Legend
GamePush
GamePush›GamePush plugin
private void OnEnable() => GP_Fullscreen.OnFullscreenChange += OnChange;
private void OnDisable() => GP_Fullscreen.OnFullscreenChange += OnChange;
private void OnOpen() => Debug.Log("FULLSCREEN: ON OPEN");
private void OnClose() => Debug.Log("FULLSCREEN: ON CLOSE");
private void OnChange() => Debug.Log("FULLSCREEN: ON CHANGE");
Stay in Touch
Other documents of this chapter available Here. To get started, welcome to the Tutorials chapter.
GamePush Community Telegram: @gs_community.
For your suggestions e-mail: official@gamepush.com
We Wish you Success!