Esempio n. 1
0
 /// <summary>
 /// Fetches the thumbnail for the given asset.
 /// </summary>
 /// <param name="asset">The asset for which to fetch the thumbnail.</param>
 /// <param name="options">The extra options, if any (can be null).</param>
 /// <param name="callback">The callback to call when the fetch finishes (optional).</param>
 public static void FetchThumbnail(PolyAsset asset, PolyFetchThumbnailOptions options,
                                   FetchThumbnailCallback callback = null)
 {
     CheckInitialized();
     PolyMainInternal.Instance.FetchThumbnail(asset, options, callback);
 }
Esempio n. 2
0
 /// <summary>
 /// Retrieves information about the given asset in the given format, then calls the given callback.
 /// </summary>
 /// <param name="asset">The asset for which to fetch the files.</param>
 /// <param name="format">The desired format.</param>
 /// <param name="callback">The callback to call when the fetch is complete.</param>
 public static void FetchFormatFiles(PolyAsset asset, PolyFormatType format, FetchFormatFilesCallback callback)
 {
     CheckInitialized();
     PolyMainInternal.Instance.FetchFormatFiles(asset, format, callback);
 }
Esempio n. 3
0
 /// <summary>
 /// Imports the given asset as a GameObject.
 /// </summary>
 /// <remarks>
 /// This includes fetching any necessary files and importing them. The end result will be
 /// a GameObject that represents the imported asset. It will be placed at the origin with
 /// identity rotation and scale.
 /// </remarks>
 /// <param name="asset">The asset to import.</param>
 /// <param name="options">The options that control how to import the asset.</param>
 /// <param name="callback">The callback to call when the operation is complete (optional).</param>
 public static void Import(PolyAsset asset, PolyImportOptions options, ImportCallback callback = null)
 {
     CheckInitialized();
     PolyMainInternal.Instance.Import(asset, options, callback);
 }
Esempio n. 4
0
 public PolyFormatTypeFetchResult(PolyStatus status, PolyAsset asset)
 {
     this.status = status;
     this.asset  = asset;
 }