• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 117 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0039 秒)

81. 陀螺仪接口无效呢?Gyroscope.instance.on(Event.CHANGE, this, onOrientationChange); 什么原因呢 [ 67%]

...ice.motion.Gyroscope.instance.on(Event.CHANGE, this, onOrientationChange); function onOrientationChange(absolute, info) { if (info.alpha === null) { addLog("当前设备不支持陀螺仪。"); return; } else if (firstTime && !absolute && !Browser.onIOS) { firstTime = false; addLog("...

来源: Laya_社区 发布时间: 20171015

82. 2.3.0截屏问题 [ 67%]

...ImageData is not defined ReferenceError: ImageData is not defined     at Function.RunDriver.drawToCanvas (http://127.0.0.1:27664/game/libs/laya.webgl.js:7119:27)   drawToCanvas怎么搞,截屏问题,谁看一下 2020-01-08 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相...

来源: Laya_社区 发布时间: 20200108

83. 用as3写的排行榜渲染报错, [ 67%]

...axUI.ts有前缀导致报错 导微信小程序报错window.focus is not a function Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? runtime运行报错! 用了ByteArray的zlib.min.js后报错 排行榜的创建 问题状态 最新活动: 2018-09-01 20:43 浏览: 1057 关...

来源: Laya_社区 发布时间: 20180901

84. 用JS原生态window.location.href跳转 [ 66%]

...events.Event; import laya.utils.Browser; public class LayaAirTest { public function LayaAirTest() { Laya.init(550,400); var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,100,100,"#FFFF00"); Laya.stage.addChild(sp); sp.size(1000,100); sp.on(Event.CLICK,this,onClick); } private function onClick():v...

来源: Laya_社区 发布时间: 20161215

85. LAYABOX游戏实时语音之APP版本 [ 66%]

...mport layaair.game.browser.ConchJNI; import layaair.game.browser.ExportJavaFunction; /** * Created by Administrator on 2017/7/19. */ public class YIMMain { private final String TAG = "MarketTest"; private final static String strAppKey = "123132123";//你申请的App Key private final static String s...

来源: Laya_社区 发布时间: 20170722

86. 【分享】微信小游戏解析xml适配 [ 66%]

...具导入Laya小游戏程序 报错了 xml.getElementsByTagName is not a function 2018-07-05 0 1 分享 微博 QZONE 微信 yminhao 赞同来自: 感谢分享,完美解决在微信开发工具中,用Laya.BitmapFont的loadFont方法,加载位图字体失败,报gameThirdScriptError的错误...

来源: Laya_社区 发布时间: 20180103

87. native 1.0.2 连不上wss [ 66%]

...var ws = new WebSocket("wss://login.huanxi.twbuyu.com:27777"); ws.onopen = function() { alert("connect success~"); ws.send('tom'); alert("send to server msg: tom"); }; ws.onmessage = function(e) { alert("accpet msg: " + e.data); }; ws.onerror = function(e) { alert("error: " + e); console.log(e) }; &...

来源: Laya_社区 发布时间: 20181018

88. Morn下List组件如何给每一条列表添加Click事件,是需要for吗? [ 66%]

...n.core.handlers.Handler; public class ListView extends ListViewUI { public function ListView() { super(); var arr:Array=[]; for(var i:int=0;i<95;i++) { arr.push({icon:i,label:"Index"+i}); } boxList.array=arr; boxList.mouseHandler=new Handler(listRender); } private function listRender(e:MouseEvent...

来源: Laya_社区 发布时间: 20151224

89. layaAir和android studio二次开发 [ 66%]

...=false; // 注册手指按下事件 document.addEventListener("touchstart",function(e){ a=!a;// 实现奇数次打开 偶数次关闭 // b、调用静态函数openlight 参数为a Test.call("openlight",a); }); 2017-12-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

来源: Laya_社区 发布时间: 20171225

90. 2d物理引擎中,onTriggerEnter函数中的contact参数的getHitInfo函数无效 [ 65%]

...链接 提交 1 个回复 176*****795 赞同来自: contack.getHitInfo = function () { 这一行上面 写 let that = this; 把this保存下来, 然后把 var mainfold = new Physics.I.box2d.b2WorldMainfol(); 改为 var mainfold = new that.box2d.b2WorldMainfol(); 2020-07-10 0 2 分享 微博 QZONE ...

来源: Laya_社区 发布时间: 20200708