How to retrieve system/computer name?

Hi there,

Is it possible at all to access the name of the Windows computer you are using, save that to a string and then use that as the player’s name within the game? I understand how strings work etc, would just like to know how to access the user’s PC name… is this possible with Unity?

Cheers!

In C#, use System.Environment.UserName (http://msdn.microsoft.com/en-us/library/System.Environment.aspx). I’m afraid I can’t help you in JavaScript.

P.s. This works on Mac and Windows… Just thought I’d mention that

-Do your best! Gibson