예제 #1
0
 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);
 }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }