Unity web hack: embedding Asset Store items made easy
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):
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:
This is the general 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.
10 CommentsSubscribe to comments
Comments are closed.