/// <summary> /// Imports the model asset file to the target location. /// </summary> /// <param name="inputPath">The source file path.</param> /// <param name="outputPath">The result asset file path.</param> /// <param name="settings">The settings.</param> /// <returns>True if importing failed, otherwise false.</returns> public static bool Import(string inputPath, string outputPath, ModelImportSettings settings) { if (settings == null) { throw new ArgumentNullException(); } ModelImportSettings.InternalOptions internalOptions; settings.ToInternal(out internalOptions); return(Internal_ImportModel(inputPath, outputPath, ref internalOptions)); }
public static bool Import(string inputPath, string outputPath, ModelImportSettings settings) { if (settings == null) { throw new ArgumentNullException(); } #if UNIT_TEST_COMPILANT throw new NotImplementedException("Unit tests, don't support methods calls. Only properties can be get or set."); #else ModelImportSettings.InternalOptions internalOptions; settings.ToInternal(out internalOptions); return(Internal_ImportModel(inputPath, outputPath, ref internalOptions)); #endif }