protected override void OnSkinUI() { base.OnSkinUI(); rectTransform = GetComponent <RectTransform>(); (float factor, float m_width, bool portrait) = ScreenSizeFactor.GetFactor(); SetPaddingProps(data, factor); }
private void GetDimensions(out float factor, out Vector2 rectSize) { float m_width; bool portrait; (factor, m_width, portrait) = ScreenSizeFactor.GetFactor(); rectSize = new Vector2(base.defaultData.defaultButtonSize * factor, base.defaultData.defaultButtonSize * factor); }
protected override void OnSkinUI() { base.OnSkinUI(); layoutGroup = GetComponent <LayoutGroup>(); GetLayoutComponents(); (float factor, float m_width, bool portrait) = ScreenSizeFactor.GetFactor(); SetLayout(data, factor); }
protected override void OnSkinUI() { base.OnSkinUI(); text = GetComponent <TextMeshProUGUI>(); rectTransform = GetComponent <RectTransform>(); text.font = font.fontAsset; (float factor, float m_width, bool portrait) = ScreenSizeFactor.GetFactor(); AssignTextStyle(data, factor); }