Skip to content

se0kjun/UnityAssetstoreAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

UnityAssetstore API

Unofficial API for controlling asset store in run-time

Feature

  • Download assets
  • Retrieve assets
  • Get overview of asset
  • Sign in

Usage

// console version
static void Main(string[] args)
{
    UnityAssetstoreUser user = new UnityAssetstoreUser();

	// login to assetstore account
    user.UserLogin("your ID", "your password");
	// get assets can be downloaded
	List<int> ids = user.GetDownloadableAssets();

    UnityAssetstoreAsset asset = new UnityAssetstoreAsset();

	// download asset
    var t = aa.GetDownloadAssetTaskAsync(ids[0]);
    Task.WaitAll(t);
}

Wrapper class

AssetstoreUserWrapper

AssetstoreUserOverviewWrapper

AssetstoreContentWrapper

AssetstoreContentOverviewWrapper

AssetstoreDownloadInfoWrapper

API

UnityAssetstoreUser

UserLogin(string id, string password)

Return Type: AssetstoreUserWrapper

Login to Assetstore account corresponding to id and password.

GetDownloadableAssets()

Return Type: List<int> 

Get asset ids that can be downloaded.

GetUserOverview(string id)

Return Type: AssetstoreUserOverviewWrapper

Get user overview corresponding to user id (not email).

UnityAssetstoreAsset

GetAssetOverview(int id)

Return Type: AssetstoreContentOverviewWrapper

GetAssetsOverview(List< int > ids)

Return Type: List<AssetstoreContentOverviewWrapper>

GetAssetInfo(int id)

Return Type: AssetstoreContentWrapper

GetAssetsInfo(List< int > ids)

Return Type: List<AssetstoreContentWrapper>

GetDownloadAssetTaskAsync(int id)

Return Type: Task<byte[]>

Download asset asynchronously to appdata folder. (in window case, C:\Users\Username\AppData\Roaming\Unity\Asset Store-5.x)

About

Unofficial API to control asset store in run-time

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages