Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Automating the download and import of assets bought on assetstore

Discussion in 'Package Manager' started by lmakor, Dec 9, 2020.

  1. lmakor

    lmakor

    Joined:
    Oct 31, 2016
    Posts:
    23
    I would like to automate the download, import and configuration of certain assets that I bought on the asset store, i.e. there are certain assets that I basically use in each Unity project, therefore instead of installing and configuring them manually each time I would like to automate that.
    I found the PackageManager.Client API that is explained here:
    https://docs.unity3d.com/Manual/upm-api.html

    However, this API seems to only allow to download packages from the Unity registry and not from the asset store.
    Therefore I would like to know how i can automate the downloading and importing from assetstore assets.
    Has anybody done something like that?
    Is it even possible using official APIs?
     
  2. lmakor

    lmakor

    Joined:
    Oct 31, 2016
    Posts:
    23
    does really nobody know any way to automate/script the process of downloading and setting up assets that were purchased through the assetstore?
     
  3. UnityMaru

    UnityMaru

    Community Engagement Manager PSM

    Joined:
    Mar 16, 2016
    Posts:
    1,227
    Hey there,

    We can't find an API to do this at present. The team reading the documentation about it see that it's something you may be able to implement yourself.

    Downloaded assets are present in the hard drive, in the article below, you can find where they are located: Once you have downloaded your Assets, they can be found in the following locations:

    Windows - User>AppData>Roaming>Unity> Asset Store
    Mac - User>Library>Unity>Asset Store

    https://support.unity.com/hc/en-us/...e downloaded your,>Roaming>Unity> Asset Store

    with these, you can then install it with `AssetDatabase.ImportPackage`

    https://docs.unity3d.com/ScriptReference/AssetDatabase.ImportPackage.html
    https://docs.unity3d.com/Manual/AssetDatabase.html
     
    firstuser likes this.
  4. ImpossibleRobert

    ImpossibleRobert

    Joined:
    Oct 10, 2013
    Posts:
    521
    While this thread is a bit older it might still be relevant to others: I had the same issue and created a new Unity asset which actually does exactly this, bulk package installation (including adding the needed registries is applicable) as well as asset installation, download and even searching inside assets without importing everything.

    Check it out here and feedback/ideas always welcome: https://assetstore.unity.com/packages/tools/utilities/asset-inventory-226927