private string ConvertCriFilePath(string resourcesPath) { if (string.IsNullOrEmpty(resourcesPath)) { return(null); } return(isSimulate ? PathUtility.Combine(new string[] { UnityPathUtility.GetProjectFolderPath(), resourceDir, resourcesPath }) : PathUtility.Combine(new string[] { criAssetManager.BuildFilePath(null), resourcesPath })); }
private string ConvertCriFilePath(string resourcePath) { if (string.IsNullOrEmpty(resourcePath)) { return(null); } var assetInfo = GetAssetInfo(resourcePath); return(simulateMode ? PathUtility.Combine(new string[] { UnityPathUtility.GetProjectFolderPath(), resourceDir, resourcePath }) : criAssetManager.BuildFilePath(assetInfo)); }