Categories & Tags
Archive

Unity web hack: embedding Asset Store items made easy

December 4, 2013 in Asset Store by

You have a website, right? Or a blog? When posting about the Asset Store, it’s good to show which one of all the amazing assets are you talking about. Keigo Ando from Unity’s office in Japan found out how to do this the easy way!

After embedding this code, all the necessary info like name, category, price and rating shows up, together with a picture and a link. When somebody’s done reading your post, they can hurry up and buy the asset. Needless to say, this is especially useful if you’re a publisher.

For example, paste this in (in the text view, if you’re using WordPress):

<script src=”http://assetstore-content.unity3d.co.jp/11228″ type=”application/javascript”></script>

and you’ll get this:

To embed other assets, simply find their Content ID at the end of the URL of their asset store page. 11228 is the Content ID of our 2D platformer:

Screen Shot 2013-12-04 at 1.45.11 PM

This is the general script:

<script src=”http://assetstore-content.unity3d.co.jp/{CONTENT_ID}” type=”application/javascript”></script>

It’s just a little convenience feature, but it can save a lot of time.
This should work with most content management systems for websites. The only condition is that you should be able to embed a <script> tag.

You can choose between different preview sizes and even embed multiple items. For a complete list of possibilities, head over to Keigo’s demo page.

 

Share this post

Comments (10)

Comments are closed.

caedisius
4 Dec 2013, 8:14 pm

The “and you’ll get this:” example doesn’t work, returns a 500 for https://assetstore-content.appspot.com/11228

caedisius
4 Dec 2013, 8:15 pm

haha, nevermind, looks like you fixed it in the time it too me to comment :)

John Gallet
5 Dec 2013, 3:43 am

That’s a great idea but then why not doing commission and having an affiliate system? That would be awesome.

8 Dec 2013, 8:31 pm

Hi,

Very good initiative! But I would be a lot more useful and extremly powerful if information would be available using some kind of REST. That’s something very much missing with the asset store.

Bye,

Jean

cician
4 Jan 2014, 11:16 am

would be nice to have a list of all assets by publisher updated automatically

Matteo
19 Jan 2014, 9:00 am

I copied the code by it does not load the images!
it there some update or something else we should do?

19 Jan 2014, 1:50 pm

Matteo, try [asset src="https://assetstore-content.appspot.com/{CONTENT_ID}"]. It is an alternative in case your system doesn’t allow script tags.

Matteo
21 Jan 2014, 5:24 pm

it seems a problem related to the browser.
on opera (my primary browser) it does not work

it’s working on chrome!

31 Jan 2014, 9:49 am

I second the having affiliate feature idea.

7 Feb 2014, 11:48 pm

a;asliujlfhrusklalo:p/

Leave a Reply

Comments are closed.