Getting .UnityPackage From url

Hey

i am trying to create an extension that allows unity users to access a library of assets and download
individual models to there project

for example.

if(GUILayout.Button(“Sinister Support”)){ AssetDatabase.ImportPackage(“https://dl.dropbox.com/s/s54tmp2jbqoq4d0/Lamp.unitypackage”);

This code don’t work so what i need is the code that will allow me to download and import the package much like the asset store does

Any ideas?

Thanks

i don’t totally understand your question, but you may be looking for asset BUNDLES

explained here … import package with script - Questions & Answers - Unity Discussions