Example #1
0
    public override void Populate(CmsGameObject content)
    {
        Image img = content.GetComponent <Image>();

        if (img != null)
        {
            color = img.color;
        }
    }
    public override void Populate(CmsGameObject content)
    {
        TextMeshProUGUI textMeshProUgui = content.GetComponent <TextMeshProUGUI>();

        if (textMeshProUgui != null)
        {
            font     = textMeshProUgui.font;
            color    = textMeshProUgui.color;
            fontSize = textMeshProUgui.fontSize;
        }
    }