/// <summary>
        /// Returns a default set of import options.
        /// </summary>
        public static PolyImportOptions Default()
        {
            PolyImportOptions options = new PolyImportOptions();

            options.recenter      = true;
            options.rescalingMode = RescalingMode.CONVERT;
            options.scaleFactor   = 1.0f;
            options.desiredSize   = 1.0f;
            return(options);
        }
Exemplo n.º 2
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);
 }