using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UI; namespace RoR2.UI.SkinControllers; [RequireComponent(typeof(Button))] public class ButtonSkinController : BaseSkinController { private static readonly List instancesList = new List(); private Button button; public bool useRecommendedButtonWidth = true; public bool useRecommendedButtonHeight = true; public bool useRecommendedImage = true; public bool useRecommendedMaterial = true; public bool useRecommendedAlignment = true; public bool useRecommendedLabel = true; private LayoutElement layoutElement; private void CacheComponents() { button = GetComponent