Opening a Folder From Within Unity at Runtime

Some projects have folders that allow users to add their own files into the software at runtime. A great way to alleviate the stress of finding that folder is to have a button in the software that opens it for them.

public void ViewOGGsFolder()
    {
  System.Diagnostics.Process.Start(Application.dataPath+"/OGGs/");
    }

This code can be attached to an onclick event of a button and when that button is clicked it will open the “OGGs” folder from within the Assets of the software.

Leave a Reply

Your email address will not be published. Required fields are marked *