Align TextMesh on Top Right

Hi,

I want know (i search a lot and tried a lot of codes) how i can align a TextMesh (or my extension that im using for it EasyFontTextMesh) on Top Right position of screen.

Like this:
https://dl.dropboxusercontent.com/u/7386482/top-right.png

Im using ortographic camera for a 2D game. Im porting my game with cocos2d-x (‎Fly For Coins na App Store) to use Unity3D. Im near to finish, this is a problem that i cant solve on this week :frowning:

Thanks for any help :slight_smile:

Set the anchor for the text to upper right. Then execute this code:

#pragma strict

function Start() {
	transform.position = Camera.main.ViewportToWorldPoint(Vector3(1,1,10));
}

Consider using GUIText. You can set the anchor to upper right and the position to 1,1, and no code is involved unless you need to change font size.