static private StartExportADFActivity ( string srcAdfUuid, string exportLocation ) : void | ||
srcAdfUuid | string | ADF that is going to be exported. |
exportLocation | string | Path to the export location. |
return | void |
/// <summary> /// Export an area description from the default area storage location to the destination file directory. /// /// The exported file will use the UUID as its file name. /// </summary> /// <returns>Returns <c>true</c> if the file was exported, or <c>false</c> if the export failed.</returns> /// <param name="filePath">Destination file directory.</param> public bool ExportToFile(string filePath) { if (string.IsNullOrEmpty(filePath)) { Debug.Log("No file path specified.\n" + Environment.StackTrace); return(false); } AndroidHelper.StartExportADFActivity(m_uuid, filePath); return(true); }
/// DEPRECATED: Use the AreaDescription class to work with area descriptions. /// <summary> /// Export an area with the UUID from the default area storage location to the destination file /// directory with the UUID as its name. /// </summary> /// <returns>Returns TANGO_SUCCESS if the file was exported, or TANGO_ERROR if the export failed.</returns> /// <param name="uuid">The UUID of the area.</param> /// <param name="filePath">The destination file directory.</param> public static int ExportAreaDescriptionToFile(string uuid, string filePath) { if (string.IsNullOrEmpty(uuid)) { Debug.Log("Can't export an empty UUID. Please define one."); return(Common.ErrorType.TANGO_ERROR); } if (string.IsNullOrEmpty(filePath)) { Debug.Log("Missing file path for exporting area description. Please define one."); return(Common.ErrorType.TANGO_ERROR); } AndroidHelper.StartExportADFActivity(uuid, filePath); return(Common.ErrorType.TANGO_SUCCESS); }
/// <summary> /// Export an area description from the default area storage location to the destination file directory. /// /// The exported file will use the UUID as its file name. /// </summary> /// <returns>Returns <c>true</c> if the file was exported, or <c>false</c> if the export failed.</returns> /// <param name="filePath">Destination file directory.</param> public bool ExportToFile(string filePath) { #if UNITY_EDITOR Debug.LogWarning("Area description import and export are not supported in Unity Editor" + " because editor area description files are all but meaningless" + " (and mostly exist for the sole purpose of faster UI testing)."); return(false); #else if (string.IsNullOrEmpty(filePath)) { Debug.Log("No file path specified.\n" + Environment.StackTrace); return(false); } AndroidHelper.StartExportADFActivity(m_uuid, filePath); return(true); #endif }