Skip to content

Instantly share code, notes, and snippets.

@gustavopsantos
Created September 12, 2023 12:40
Show Gist options
  • Save gustavopsantos/99fca7c6f6206f8aa1e900a3300034a2 to your computer and use it in GitHub Desktop.
Save gustavopsantos/99fca7c6f6206f8aa1e900a3300034a2 to your computer and use it in GitHub Desktop.
thread safe equivalent for UnityEngine.Application.dataPath
using System.IO;
public static class GetApplicationDataPath
{
public static string Get()
{
return Path.Combine(Directory.GetCurrentDirectory(), "Assets").Replace('\\', '/');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment