Tutorial - Settings Screen
Introduction
Defining SettingsViewModel
using Gum.Mvvm;
namespace BindingTutorial.ViewModels;
public class SettingsViewModel : ViewModel
{
public float MusicVolume
{
get => Get<float>();
set => Set(value);
}
public float SfxVolume
{
get => Get<float>();
set => Set(value);
}
public bool IsFullScreen
{
get => Get<bool>();
set => Set(value);
}
}Defining SettingsScreen
Using the SettingsScreen


Last updated
Was this helpful?

