1
0
forked from cgvr/DeltaVR

Restore Defaults button to restore the default settings.

This commit is contained in:
2026-02-03 22:56:01 +02:00
parent 2e7dc403ad
commit 011d9dfdda
9 changed files with 264 additions and 3 deletions

View File

@@ -0,0 +1,20 @@
using System.Collections;
using System.Collections.Generic;
using Unity.Burst;
using UnityEngine;
public class RestoreDefaultsController : MonoBehaviour
{
[SerializeField]
public List<AbstractValueController> valueControllers = new List<AbstractValueController>();
public void OnRestoreDefaults()
{
ConfigManager.instance.RestoreDefaultConfig();
foreach (AbstractValueController avc in valueControllers)
{
avc.RestoreFromConfig();
}
}
}