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

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

101. 3D 鼠标检测 错乱 [ 83%]

...修改laya.d3.js _update方法为 _update() { var i=0,n=0,j=0,m=0; n=this._eventList.length; var cameras=this._scene._cameraPool; if (n > 0){ for (i=0;i < n;i++){ var e=this._eventList; switch (e.type){ case "mousedown": this._mouseTouchDown(); break ; case "mouseup": this._mouseTouchUp(); bre...

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

102. 使用laya的unity插件2.4.0导出预设总是报错。2.3.0是没问题的 [ 83%]

...0) UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout) (at /Users/unity/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:266) UnityEngine.Experimental.UIEl...

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

103. Spine 间隔一段时间卡顿5000毫秒左右,期间GPU占用极高, Demo已上传 [ 83%]

...= Laya.stage.height / 2; ufo.play("ludo_ufo_kaishi", false); ufo.once(Laya.Event.STOPPED, this, () => { ufo.play("ludo_ufo_feixing", true); }); ufo.on(Laya.Event.LABEL, this, (e) => { if (e.name == "xiaoshi") { ufo.offAllCaller(this); // ufo.removeSelf();   } });  })); }  genSpine(url, hand...

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

104. Ignored attempt to cancel a touchmove event with cancelable=false [ 83%]

Ignored attempt to cancel a touchmove event with cancelable=false 在华为荣耀20  安卓10系统下,手机 触摸点击速度快一些,会导致元素鼠标事件消失,但是舞台事件还可以执行 每次点击报下面的警告, 在源码里面加上判断后,     (e.cancela...

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

105. clearRes好像没作用,或许我的用法不对 [ 83%]

...  constructor() {         super();         Laya.stage.on(Laya.Event.KEY_UP, this, this.onKeyUp);     }     onKeyUp(e: Laya.Event) {         if (e.keyCode == 65) {//A             console.log("释放资源false")             Laya.loader.clearRes("res/atlas/co...

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

106. Ignored attempt to cancel a touchmove event with cancelable=false [ 83%]

Ignored attempt to cancel a touchmove event with cancelable=false 在华为荣耀20  安卓10系统下,手机 触摸点击速度快一些,会导致元素鼠标事件消失,但是舞台事件还可以执行 每次点击报下面的警告, 在laya.core源码里面加上判断后,     (...

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

107. Sprite-节点控制 [ 82%]

...效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Event = Laya.Event; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var ape1; var ape2; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV...

来源: Laya_示例 发布时间: 20240930

108. Sprite-轴心点 [ 82%]

...效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Event = Laya.Event; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var sp1, sp2; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Sta...

来源: Laya_示例 发布时间: 20240930

109. Ignored attempt to cancel a touchmove event with cancelable=false [ 82%]

Ignored attempt to cancel a touchmove event with cancelable=false 在华为荣耀20  安卓10系统下,手机 触摸点击速度快一些,会导致元素鼠标事件消失,但是舞台事件还可以执行 每次点击报下面的警告, 在laya.core源码里面加上判断后,     (...

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

110. WebSocket发送与接收数据(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 82%]

...实例化socket之后四个事件是我们必须监听的: ```typescript Event.OPEN :连接正常打开抛出的事件 Event.MESSAGE :接收到消息抛出的事件 Event.CLOSE :socket关闭抛出的事件 Event.ERROR :连接出错抛出的事件 ``` 上面这四个事件是必须的,这也是...

来源: Laya2.0_文档 发布时间: 20210714