public GltfData(string targetPath, string json, glTF gltf, IReadOnlyList <GlbChunk> chunks, IStorage storage, MigrationFlags migrationFlags) { TargetPath = targetPath; Json = json; GLTF = gltf; Chunks = chunks; _storage = storage; MigrationFlags = migrationFlags; // init if (Chunks != null) { if (Chunks.Count >= 2) { Bin = NativeArrayManager.CreateNativeArray(Chunks[1].Bytes); } } }
public void Dispose() { NativeArrayManager.Dispose(); _UriCache.Clear(); }