static string GetDataPath(bool relative = false) { string dataPath = Path.ChangeExtension(CallerInfo.FilePath(), "asset"); if (relative) { string cwd = Directory.GetCurrentDirectory(); cwd = cwd.TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar); cwd += Path.DirectorySeparatorChar; dataPath = new Uri(cwd).MakeRelativeUri(new Uri(dataPath)).ToString(); } return(dataPath); }