public void Import(IAssetImportEnvironment env) { // Handle all available input. No need to filter or ask for this anymore, as // the preparation step already made a selection with AcceptsInput. We won't // get any input here that didn't match. BaseAssetImporter.Import <JsonData>(env); }
public void Export(IAssetExportEnvironment env) { // Determine input and output path CsvData input = env.Input as CsvData; string outputPath = env.AddOutputPath(input.Name + SourceFileExtPrimary); BaseAssetImporter.Export(input, outputPath); }
public void Export(IAssetExportEnvironment env) { // Determine input and output path JsonData input = env.Input as JsonData; string outputPath = env.AddOutputPath(input.Name + SourceFileExtPrimary); // Take the input Resource's pixel data and save it at the specified location BaseAssetImporter.Export(input, outputPath); }