I was not able to get the label reference using GetComponent<T>
, and ended up adding it as [SerializedField]
.
I then realized I had the script attached to the tile
(root) object. Once moved to the label I had no problems.
Maybe this info can be helpful for others making the same mistake of attaching the script in the wrong place.