How to add a component on a GameObject in Custom Inspector code example
Example 1: get custom label in lightning component
$A.get("$Label.namespace.labelName")
Example 2: unity how to change text in script
Text myText = GameObject.Find("Canvas/Text").GetComponent<Text>();
myText.text = "Your text changed!";