diff --git a/Assets/Scripts/GUI/BrushSettingsTray.cs b/Assets/Scripts/GUI/BrushSettingsTray.cs index c20097a78..01e4420da 100644 --- a/Assets/Scripts/GUI/BrushSettingsTray.cs +++ b/Assets/Scripts/GUI/BrushSettingsTray.cs @@ -33,6 +33,7 @@ protected override void OnDestroy() base.OnDestroy(); App.Switchboard.ToolChanged -= UpdateSliderToMatchCurrentSize; } + private void ListenForConnectedDevices() { List devices = new List(); @@ -42,6 +43,7 @@ private void ListenForConnectedDevices() DeviceConnected(device); } } + private void DeviceConnected(InputDevice device) { Debug.Log($"Device name: {device.name}"); @@ -53,6 +55,7 @@ private void DeviceConnected(InputDevice device) UpdateSliderToMatchCurrentSize(); } + private void UpdateSliderToMatchCurrentSize() { m_BrushSizeSlider.SetInitialValueAndUpdate(