static private StartImportADFActivity ( string adfPath ) : void | ||
adfPath | string | Path to the ADF that is going to be imported. |
Résultat | void |
/// <summary> /// Import an area description from a file path to the default area storage location. /// </summary> /// <returns><c>true</c> if the area description was imported successfully, <c>false</c> otherwise.</returns> /// <param name="filePath">File path of the area descrption to be imported.</param> public static bool ImportFromFile(string filePath) { if (string.IsNullOrEmpty(filePath)) { Debug.Log("No file path specified.\n" + Environment.StackTrace); return(false); } AndroidHelper.StartImportADFActivity(filePath); return(true); }
/// DEPRECATED: Use the AreaDescription class to work with area descriptions. /// <summary> /// Import an area description from a file path to the default area storage location. /// </summary> /// <returns><c>Common.ErrorType.TANGO_SUCCESS</c> if the UUID was imported successfully.</returns> /// <param name="filePath">File path of the area descrption to be imported.</param> public static int ImportAreaDescriptionFromFile(string filePath) { if (string.IsNullOrEmpty(filePath)) { Debug.Log("Missing file path for exporting area description. Please define one."); return(Common.ErrorType.TANGO_ERROR); } AndroidHelper.StartImportADFActivity(filePath); return(Common.ErrorType.TANGO_SUCCESS); }
/// <summary> /// Import an area description from a file path to the default area storage location. /// </summary> /// <returns><c>true</c> if the area description was imported successfully, <c>false</c> otherwise.</returns> /// <param name="filePath">File path of the area descrption to be imported.</param> public static bool ImportFromFile(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.StartImportADFActivity(filePath); return(true); #endif }