Example #1
0
 public abstract AssetImporterOutput BaseImport(AssetImporterInput input, String platformId);
Example #2
0
        static IAsset ImportAsset(
            Type assetImporterType,
            List<String> sourceFiles,
			Dictionary<String, Object> settings,
			String platformId)
        {
            Console.WriteLine ("\t\tabout to import resource with " + assetImporterType);

            var assetImporter = Activator.CreateInstance (assetImporterType) as AssetImporter;

            var assetImporterInput = new AssetImporterInput ();
            assetImporterInput.Files = sourceFiles;
            assetImporterInput.AssetImporterSettings = new AssetImporterSettings ();
            assetImporterInput.AssetImporterSettings.Settings = settings;
            var output = assetImporter.BaseImport (assetImporterInput, platformId);

            var resourceType = assetImporterType.BaseType ().GenericTypeArguments ()[0];

            Console.WriteLine ("\t\tresource type = " + resourceType);

            return output.OutputAsset;
        }