Hey folks, so I was trying to make a button, but somehow layer.center() won't center the text layer exactly, anyone can help point out where I did wrong?
Yea, thats strange. I'm not sure if you needed that extra bg layer. I don't think you need it if you're creating a regular button. A hacky way to 'fix' the alignment is to Align.center the x and y for the text and use the borderWidth as the offsets https://cl.ly/0m052O0P3h1E