get user account name

Hi,

I’m about to publish a little game for multiple players on one mac. Users will have to enter their names and I thought it’d be cool if the default name for user 0 would be the username of the user currently logged in.

Is there a way to get it in unity?

I believe Environment.Username should work. If not, there are a couple of other methods I can dig up. Try that first.

You have to use the System reference at the top of your script for you to be able to access this class.