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; } }
protected override void OnEnable() { if (target == null || !CmsController.Exists) { return; } base.OnEnable(); cmsGameObject = (CmsGameObject)target; options = CmsController.Instance.styleScriptableObject.styles.SecondaryKeys; if (options.Contains(cmsGameObject.humanReadableKey)) { currentKey = options.IndexOf(cmsGameObject.humanReadableKey); } }
public abstract void Populate(CmsGameObject component);