Not able to obtain the label ref - silly mistake

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.

Thanks for sharing your experience and your solution. :slight_smile:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms