예제 #1
0
 /// <summary>
 /// Tries the restore the asset import options from the target resource file.
 /// </summary>
 /// <param name="options">The options.</param>
 /// <param name="assetPath">The asset path.</param>
 /// <returns>True settings has been restored, otherwise false.</returns>
 public static bool TryRestore(ref ModelImportSettings options, string assetPath)
 {
     if (ModelImportEntry.Internal_GetModelImportOptions(assetPath, out var internalOptions))
     {
         // Restore settings
         options.FromInternal(ref internalOptions);
         return(true);
     }
     return(false);
 }
예제 #2
0
 /// <summary>
 /// Tries the restore the asset import options from the target resource file. Applies the project default options too.
 /// </summary>
 /// <param name="options">The options.</param>
 /// <param name="assetPath">The asset path.</param>
 /// <returns>True settings has been restored, otherwise false.</returns>
 public static void TryRestore(ref ModelImportSettings options, string assetPath)
 {
     ModelImportEntry.Internal_GetModelImportOptions(assetPath, out var internalOptions);
     options.FromInternal(ref internalOptions);
 }