コード例 #1
0
    protected override void OnSkinUI()
    {
        base.OnSkinUI();
        rectTransform = GetComponent <RectTransform>();
        (float factor, float m_width, bool portrait) = ScreenSizeFactor.GetFactor();

        SetPaddingProps(data, factor);
    }
コード例 #2
0
    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);
    }
コード例 #3
0
    protected override void OnSkinUI()
    {
        base.OnSkinUI();
        layoutGroup = GetComponent <LayoutGroup>();

        GetLayoutComponents();
        (float factor, float m_width, bool portrait) = ScreenSizeFactor.GetFactor();

        SetLayout(data, factor);
    }
コード例 #4
0
ファイル: FlexText.cs プロジェクト: cgtinker/blendartrack_app
    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);
    }