Hi, I'm using the following:
What would I set it to for it to be centered on the screen instead of the left corner?
asked Dec 08 '10 at 02:02 AM
You need a GUIStyle that has a centered alignment. You can do this programmatically by getting an existing style and setting the alignment:
Or you can make your own style, set it up in the inspector to include centering, and use that:
answered Dec 08 '10 at 02:26 AM
hey there again! here's the code to do that:
and if it's not centered, play around with the window height / width, and if it's still not working, let me know.
answered Dec 08 '10 at 02:09 AM