Unity web hack: embedding Asset Store items made easy

December 4, 2013 in Asset Store

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.

 

Comments (10)

Subscribe to comments
  1. dato

    February 7, 2014 at 11:48 pm / 

    a;asliujlfhrusklalo:p/

  2. Pangeran Wiguan

    January 31, 2014 at 9:49 am / 

    I second the having affiliate feature idea.

  3. Matteo

    January 21, 2014 at 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!

  4. Kristyna Paskova

    January 19, 2014 at 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.

  5. Matteo

    January 19, 2014 at 9:00 am / 

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

  6. cician

    January 4, 2014 at 11:16 am / 

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

  7. Jean Fabre

    December 8, 2013 at 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

  8. John Gallet

    December 5, 2013 at 3:43 am / 

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

  9. caedisius

    December 4, 2013 at 8:15 pm / 

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

  10. caedisius

    December 4, 2013 at 8:14 pm / 

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

Comments are closed.