owlengineer / Unity-Asset-Cache

JetBrains internship task

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IAssetCache

Description

This repository contains the solution of the task for internship from JetBrains.

Demonstration

Testing Build(...) and Merge(...) methods

Expand!
The main problem here - dealing with interruptions and unexpected changes in file between interruptions.

If there is no changes between interruptions - program will continue the uploading. It provides NOT to lose progress in this case:

If chages happened - the progress resets and uploading begins from the start:


Testing the API

Expand!
After successful completion of Build and Merge methods you are available to use API.
GetLocalAnchorUsages(...) method:

GetGuidUsages(...) method:

GetComponentsFor(...) method:


Note: all tests here were launched on default sample from the original task.

Results: every method from API working on default sample LESS than 1 ms.

Run

On ubuntu:

git clone https://github.com/DarkFlink/Unity-Asset-Cache.git
cd ./Unity-Asset-Cache
dotnet build

Run for default sample (~170mb) from google drive:

./bin/Debug/netcoreapp3.1/IAssetCache_JB

Run for another sample:

./bin/Debug/netcoreapp3.1/IAssetCache_JB -p ./relative/path/to/your/.unity/asset

About

JetBrains internship task


Languages

Language:C# 100.0%