Dispose 忘れ

This commit is contained in:
ousttrue 2022-02-14 14:23:06 +09:00
parent d183364687
commit 379c0de9b6

View File

@ -61,12 +61,6 @@ namespace UniGLTF
Debug.Log("OnImportAsset to " + scriptedImporter.assetPath);
#endif
//
// Parse(parse glb, parser gltf json)
//
var data = new AutoGltfFileParser(scriptedImporter.assetPath).Parse();
//
// Import(create unity objects)
//
@ -78,6 +72,7 @@ namespace UniGLTF
IMaterialDescriptorGenerator materialGenerator = GetMaterialGenerator(renderPipeline);
using (var data = new AutoGltfFileParser(scriptedImporter.assetPath).Parse())
using (var loader = new ImporterContext(data, extractedObjects, materialGenerator: materialGenerator))
{
// Configure TextureImporter to Extracted Textures.