unity3D发布webplayer,在webplayer中打开新的标签页

 这几天就是研究unity3D关于web的东西了,把自己遇到的问题就记录下来与大家分享免得大家以后走弯路。

    1.这是我们发布成webplayer之后如果需要在web内点击之后打开新的标签页,

        例子:

            void OnMouseDown()

            {

               Application.ExternalEval("window.open('http://www.baidu.com','_blank')");   

            }

    我这是随意在点击事件里写的,记住上面的函数只有在webplayer版本中才能使用,中间的(http://www.baidu.com)就是你想打开的URL。记住在你重新定义的url前面必须加上http:// 否则不好用的。初学者,跟大家一起成长。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
unity web playerWeb Player License Agreement PLEASE READ CAREFULLY: BY INSTALLING THE SOFTWARE (AS DEFINED BELOW), YOU (EITHER ON BEHALF OF YOURSELF AS AN INDIVIDUAL OR ON BEHALF OF AN ENTITY AS ITS AUTHORIZED REPRESENTATIVE) AGREE TO ALL OF THE TERMS OF THIS END USER LICENSE AGREEMENT REGARDING THE USE OF THE SOFTWARE. 1) GRANT OF LICENSE: You may install this Software on your computer to experience Unity web content. 2) TITLE: You acknowledge that no title to the intellectual property in the Software is transferred to you. Title, ownership, rights, and intellectual property rights in and to the Software shall remain that of Unity Technologies. The Software is protected by copyright laws of the United States and international treaties. 3) ANONYMOUS USAGE STATISTICS: You accept that the first time the Unity Web Player is used, anonymous information about the computer it's loaded on is submitted to Unity Technologies ApS. This only happens once time, and contains no personally identifiable information. The information submitted is: (a) Operating system and version (b) The make of the CPU, and number of CPUs present (c) The graphics card type and vendor name (d) Graphics card driver name and version (example: "nv4disp.dll 6.10.93.71") (e) Which graphics API is in use (example: "OpenGL 2.1" or "Direct3D 9.0c") (f) Amount of system and video RAM present (g) Current desktop resolution (h) Version of the Unity Web Player (i) A number describing whether running on Mac or Windows (j) A checksum of all the data that gets sent to verify that it did transmit correctly 3) DISTRIBUTION: You acknowledge that only Unity Technologies ApS and its designated distribution partners may distribute the Unity Web Player, without a special permission.

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值