A game about forced loneliness, made by TACStudios
1using UnityEngine.UIElements; 2 3namespace Unity.Multiplayer.Center.Window.UI 4{ 5 internal static class ViewUtils 6 { 7 public static void MoveToggleLeft(BaseBoolField button) 8 { 9 var label = button.Q<Label>(); 10 button.Insert(button.childCount - 1, label); 11 // equivalent to button.Children.First() 12 using var iterator = button.Children().GetEnumerator(); 13 iterator.MoveNext(); 14 var first = iterator.Current; 15 first.style.flexGrow = 0; 16 } 17 } 18}