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

大约有 3,603 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0076 秒)

461. 关于video [ 78%]

...1; videoElement.src = "../laya/assets/friend.mp4"; videoElement.controls = true; videoElement.play(); // 阻止IOS视频全屏 videoElement.setAttribute("webkit-playsinline", true); videoElement.setAttribute("playsinline", true); // // 设置画布上的对齐参照物 var reference = new Laya.Sprit...

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

462. 微信小游戏利用开放域好友关系链做排行榜 [ 78%]

...     //初始化微信小游戏         Laya.MiniAdpter.init(true);         //程序入口         Laya.init(600, 400,Laya.WebGL);          //激活资源版本控制         Laya.ResourceVersion.enable("version.json", Handler.create(this, this.beginLoad...

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

463. IDE内置调试工具无法启动 [ 78%]

...imeExecutable": "${execPath}",             "useBuildInServer": true,             "sourceMaps": true,             "webRoot": "${workspaceRoot}",             "port": 9222,             "fixedPort":false         },         {  ...

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

464. 多点触控的使用(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 78%]

...owner.transform.rotate(new Laya.Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ this._text.text = "触控点为2"; this.isTwoTouch = true; //获取两个触碰点 var touch = this._scene.input.getTouch(0); var touch2 = this._scene.input.getTouch(1); //是否...

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

465. 多点触控的使用(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 78%]

...owner.transform.rotate(new Laya.Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ this._text.text = "触控点为2"; this.isTwoTouch = true; //获取两个触碰点 var touch = this._scene.input.getTouch(0); var touch2 = this._scene.input.getTouch(1); //是否...

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

466. UI-Clip [ 78%]

...ipSkin, 10, 1); Laya.stage.addChild(this.counter); this.counter.autoPlay = true; this.counter.interval = 1000; this.counter.x = (Laya.stage.width - this.counter.width) / 2 - 35; this.counter.y = (Laya.stage.height - this.counter.height) / 2 - 40; } showTotalSeconds() { const Clip = Laya.Clip; let cl...

来源: Laya2.0_示例 发布时间: 20251209

467. list的render复用问题 [ 78%]

...gSelect); } 第五个render也会有选中框,以前是list.cacheContent=true可以解决,现在如果设置list.cacheContent=true会出现拖动问题 2017-11-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复...

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

468. 2.0里面的组件(Laya.Script)的prop其中几个类型应该怎么设置 [ 78%]

..."; /** @prop {name:boolType, tips:"布尔类型示例", type:Bool, default:true}*/ public boolType: boolean = true; /** @prop {name:optionType, tips:"", type:Option, option:"aaa,bbb,true", default:"bbb"}*/ public optionType:string = "bbb"; //EditOption 貌似不能设置默认值 /** @prop {name:edi...

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

469. 鼠标交互-修正交互区域 [ 78%]

...th / 2, Laya.stage.height / 2); Laya.stage.addChild(darkOrchidRect); // 为true时,碰撞区域会被修正为实际显示边界 // mouseThrough命名真是具有强烈的误导性 darkOrchidRect.mouseThrough = true; darkOrchidRect.on(Event.MOUSE_DOWN, this, this.onDown); } createLogger() { const ...

来源: Laya2.0_示例 发布时间: 20251209

470. LayaAir2.13.0 时间轴按钮缩放动画 点击范围问题 [ 78%]

...个属性说明里写的请清楚,false的时候是按设置宽高,为true是按设置显示区为点击区。所以你直接设置一下mouseThrough为true值就好了。就算是false,你设置属性宽高也是可以的,之所以之有4分之一有事件,是因为你动画也做错了...

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