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

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

1511. 小米手机三指点击后,后续获得的触摸点失效 [ 70%]

...的触摸点失效,单点的情况下会获得三个触摸点信息Laya.stage.on(Laya.Event.MOUSE_DOWN, this, (data: Laya.Event) => { let str = ""; if (data.touches) { for (let i = 0; i < data.touches.length; i++) { str += ` {${i} : ${data.touches[i].pos.toString()}}`; } } console.log("drag ...

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

1512. 精灵添加名称 [ 69%]

...#eeb9b3");         sp.on(Event.CLICK,this, onsp);         Laya.stage.addChild(sp);   }   private function onsp(e:Event){              console.log("监听到按钮"+e.target);              console.log((e.target.getChildAt(0) as Sprite).name);              console.l...

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

1513. dialog的锁定效果,popup设置无效,还是可以点击到下面的界面 [ 69%]

...ar xgpwd =new pwdDialog(); xgpwd.popup(true); Laya.Dialog.lock(true); Laya.stage.addChild(xgpwd);   文档api 说popup模式 还要lock设置 我都一一的试了都没用,这是怎么回事   2017-11-30 0 0 分享 微博 QZONE 微信 ymsdandan 赞同来自: 你设置这个了么closeDialogOnSi...

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

1514. 为什么laya2.0加载不了.lm文件? [ 69%]

...andler.create(this, this.completeHandler)); completeHandler(): void { Laya.stage.addChild(Laya.loader.getRes("LayaScene_Scene/Scene.ls")); Laya.stage.addChild(Laya.loader.getRes("LayaScene_Scene/Assets/BakerHouse/Models/Baker_house-Baker_house.lm")) } 在第二个addchild的时候报错了!!!...

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

1515. unity导出的场景,相机节点找不到,移动和属性设置都做不了 [ 69%]

...置都做不了 var scene:Scene=Scene.load("LayaScene_Main/Main.ls"); Laya.stage.addChild(scene); camera = Laya.stage.getChildByName("Main Camera") as Camera;   ....... camera.viewportPointToRay(point, ray); 提示错误:Cannot read property 'viewportPointToRay' of null" 附件 : --> H5Dev.rar 20...

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

1516. 关于多点触控e.touches问题 [ 69%]

关于多点触控e.touches问题 Laya.stage.on(Laya.Event.MOUSE_DOWN, this, onCtrlMoveRockerTouchDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, onCtrlMoveRockerTouchDown);     function onCtrlMoveRockerTouchDown(e) {    console.log("onCtrlMoveRockerTouchDown()");    this.ctrlMoveRockerPosX...

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

1517. graphics持续绘制扇形问题 [ 69%]

...):void { //实例UI界面 var testView:TestPageUI = new TestPageUI(); Laya.stage.addChild(testView);   pie = new Sprite(); Laya.stage.addChild(pie); Laya.timer.frameLoop(1,this,onLoop); }   private var curAngle:Number = 0; private function onLoop():void { pie.graphics.drawPie(300,300,100,curAngle,...

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

1518. CharacterController move移动 报错_setWalkDirection [ 69%]

...pt (laya.d3.js:19967)     at Scene3D._update (laya.d3.js:19896)     at Stage.render (laya.core.js:17127)     at Stage._loop (laya.core.js:17067)     at loop (laya.core.js:10983)   添加后 CharacterController , 使用 move 移动就报错 this.masterSp.addComponent(Laya.CharacterControl...

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

1519. Tween回调方法里如何带参数? [ 69%]

... sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); Laya.stage.addChild(sp); Tween.to(sp,{x:300,y:300,alpha:0.5},1000,null,Handler.create(this,function():void { sp.destroy(); })); Complete事件你没写错,就是那么写的     2017-06-08 0 0 分享 微博 QZONE 微信 ohkei ...

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

1520. 绘制曲线(TypeScript-LayaAir基础篇(TS)-矢量图) [ 69%]

...pt module laya {     import Sprite = Laya.Sprite;     import Stage = Laya.Stage;     import WebGL = Laya.WebGL;        export class Sprite_DrawShapes {         private sp: Sprite;            constructor()         {             L...

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