![](https://i-blog.csdnimg.cn/blog_migrate/e0554b32a0e6265990e6cbe89dece6a3.png)
unity3d 嵌入web
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!
您有一个网站,对吗? 还是博客? 在发布有关资产商店的信息时,最好显示您正在谈论的所有令人惊奇的资产中的哪一项。 来自Unity日本办事处的安藤圭吾(Keigo Ando)发现了如何轻松实现这一目标!
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):
例如,将其粘贴(在文本视图中,如果您使用的是WordPress):
<script src=”http://assetstore-content.unity3d.co.jp/11228″ type=”application/javascript”></script>
<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:
要嵌入其他资产,只需在其资产商店页面URL的末尾找到其Content ID。 11228是我们的2D平台程序的Content ID:
![Screen Shot 2013-12-04 at 1.45.11 PM](https://i-blog.csdnimg.cn/blog_migrate/593d1ad194ab3448721b189fec8bdc1b.png)
This is the general script:
这是通用脚本:
<script src=”http://assetstore-content.unity3d.co.jp/{CONTENT_ID}” type=”application/javascript”></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.
这只是一个小便利功能,但可以节省很多时间。 这适用于大多数网站内容管理系统。 唯一的条件是您应该能够嵌入<script>标记。
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.
您可以在不同的预览尺寸之间进行选择,甚至可以嵌入多个项目。 有关可能性的完整列表,请转到Keigo的演示页面 。
翻译自: https://blogs.unity3d.com/2013/12/04/unity-web-hack-embedding-asset-store-items-made-easy/
unity3d 嵌入web