- Knowledge Base
- Homa Belly SDK
- What's Next?
In-Game Pop-Ups
Find samples for the Popups in the Assets/Homa Games/Popups/Sample folder.
Settings
using HomaGames.Settings;
private void Start()
{
// Show the Popup
SettingsPopup.Open();
// Hide the Popup
//SettingsPopup.Close();
}
private void OnEnable()
{
// Listen to button changes
SettingsPopup.OnMusicChanged += OnMusicToggle;
SettingsPopup.OnSoundsChanged += OnSoundsToggle;
SettingsPopup.OnVibrationChanged += OnVibrationToggle;
// Privacy is automatically calling the GDPR privacy settings
//SettingsPopup.OnPrivacyClicked += OnPrivacyClicked;
}
Social
using HomaGames.Social;
private void Start()
{
// Show the Popup
HomaGangPopup.Open();
// Hide the Popup
//HomaGangPopup.Close();
}