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

大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0100 秒)

1411. 移动端h5项目如何获取多点触摸的坐标 [ 82%]

...交 2 个回复 158*****871 赞同来自: Laya.stage.on(Event.MOUSE_DOWN, this, this.onMouseDown);     onMouseDown(e) { const Event = Laya.Event;   // 手机上才有 touches 属性 let touches = e.touches;   if (touches && touches.length == 2) { preRadian = Math.atan2( touches[0].stageY...

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

1412. 场景管理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 82%]

...gt; { Scene.showLoadingPage(); return Scene.load(url, Handler.create(null, this._onSceneLoaded, [closeOther, complete, param]), progress); } (图2-1) 例如创建名为 OpenScene 的场景,保存在assets路径下 uiDemo/page/OpenScene.ls,代码中可以这样打开场景,同时不关闭...

来源: Laya3.0_文档 发布时间: 20251010

1413. 关于打包App后Texture.getPixels此方法不能使用 [ 82%]

...{     if (Render.isWebGL) {        return RunDriver.getTexturePixels(this, x, y, width, height);     } else {       Browser.canvas.size(width, height);       Browser.canvas.clear();       Browser.context.drawTexture(this, -x, -y, this.width, this.height, 0, 0);       var info:* =...

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

1414. 关于光源的问题 [ 82%]

...NE 微信 liuzhengcai 赞同来自: //加载完毕后先隐藏不需要的 this._che_node=scene.getChildByName("che"); scene.removeChild(this._che_node);   .... //根据情节加载节点 this._curnode=scene.addChild(this._che_node); 上面加载的节点光照会出问题     2017-12-15 0 1 分...

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

1415. Laya1.7.8 自动补全 回车会换行 [ 82%]

...车会换行 Laya1.7.8 自动补全回车会换行 js版本 例如:输入this 会有this的自动补全,如果我输入thi 回车,会自动补全this,但如果我输入this 再按回车就会换行 老得退格~~ 2017-08-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

1416. 关于Tween类多个对象同时缓动的时候过一段时间会不同步 [ 82%]

...=i*100; tempItem.y=200; tempItem.setAnimated(true); arr.push(tempItem); // this.playAni(tempItem,new Point(0,-20),0); } }   然后这是itemUI类里的方法 private var animate:Boolean; public function setAnimated(b:Boolean):void { animate=b if(animate) { startAnimated(); } } private var num:int=2...

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

1417. TextInput 在panle里滚动后输入位置错乱,求解 [ 82%]

...多少? 2018-06-25 0 6 分享 微博 QZONE 微信 水晶 赞同来自: this.input.on(Laya.Event.FOCUS,this,()=>{ this.board.scrollPane.touchEffect = false; }) this.input.on(Laya.Event.BLUR,this,()=>{ this.board.scrollPane.touchEffect = true; }) 2019-03-18 0 0 分享 微博 QZONE 微信 为...

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

1418. DialogUI,在内部按钮监听事件没效果是引擎设定?还是我用法错误? [ 82%]

...confirm, cancel, 在InputTxtDialog 类里面cancel_btn.on(Event.CLICK, this, this.onCancel));没有反映,但是在调用InputTxtDialog的地方InputTxtDialog.cancel_btn.on(Event.CLICK, this, this.onCancel));是没有问题的,同样的代码,粘出来就行,在里面就不行 2018-09-07...

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

1419. 关于TS get/set重写问题 [ 82%]

...法前先做些处理 我父类A有个 public set a($value:number):void{ this._a = $value; } 然后继承父类后子类B重写 public set a($value:number):void {     this.aa();    super.a = $value;  } private aa():void{}   但是super是不能用到set/get中的,所以报错了,如果用this...

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

1420. 获取位置信息 · LayaAir3.4 · 引擎文档 · LAYABOX [ 82%]

...取当前位置 Laya.Geolocation.getCurrentPosition( Laya.Handler.create(this, this.onSuccess), Laya.Handler.create(this, this.onError) ); console.log("click"); } // 成功获取位置后触发 onSuccess(info: Laya.GeolocationInfo): void { console.log('经纬度: (' + info.longitude + '°, ' + info....

来源: Laya3.0_文档 发布时间: 20251010