How to align text in object?

Hi,

I used this to get text in the middle of an object.
SceneWindowWidth()/2-objmiddle.Width()/2

But this aligns the text in the middle of the game screen. Not the object.
How do i do that?

You can change the position of the center of the text to that of the center of the object.
Search for: center position.

I would say replace SceneWindowWidth with the object name.