Search Unity

Unity web hack: embedding Asset Store items made easy

December 4, 2013 in Games | 1 min. read
Placeholder image Unity 2
Placeholder image Unity 2
Topics covered
Share

Is this article helpful for you?

Thank you for your feedback!

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:

[asset src="https://assetstore-content.appspot.com/11228"]

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.

December 4, 2013 in Games | 1 min. read

Is this article helpful for you?

Thank you for your feedback!

Topics covered