unity3d 嵌入web_Unity Web hack:轻松嵌入资产商店项目

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

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值