Creating a Directory in "My Documents"

I am trying to make a directory in the “My Documents” folder for the current user on windows, to later save some files in it.

It seems there’s no system variable to get to this directory.

What would be the best approach to do this ?
Do I have to read environment variables ? How would I do that then ?

Thanks

You get can the path by using:

System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments);

System.Environment also provides access to several other special folders as needed.

https://www.google.com/search?sourceid=chrome&ie=UTF-8&q=get+my+documents+folder+c%23

Since unity uses C#, and supports a good amount of the .NET libraries, just googling “whatever question C#” will typically get you an answer when dealing with non-unity specific things.

When you do this though, pay attention to what classes your solution is using, as Unity does not have every .NET class in it.