示例#1
0
	//--------------------------------------------------------------------------------------------------------------------------------

	public static string FindReadmePath(bool relativeToAssets = false)
	{
		var readmePath = TCP2_ShaderGeneratorUtils.GetFileSafe(Application.dataPath, "!ToonyColorsPro Readme.txt");
		if (readmePath == null)
		{
			return null;
		}

		readmePath = ToSystemSlashPath(Path.GetDirectoryName(readmePath));
		if (relativeToAssets)
		{
#if UNITY_EDITOR_WIN
			readmePath = readmePath.Replace(ToSystemSlashPath(Application.dataPath), "").Replace(@"\", "/");
#else
			readmePath = readmePath.Replace(ToSystemSlashPath(Application.dataPath), "");
#endif
		}
		return readmePath;
	}