Example #1
0
        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);
                }
            }
        }
Example #2
0
 public void Dispose()
 {
     NativeArrayManager.Dispose();
     _UriCache.Clear();
 }