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

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

71. [LayaAir2] 在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 75%]

...{ htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("https://www.layaair.com/3.x/de ... ot%3B,1); this.htmlvideo.video.addEventListener("loadedmet...

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

72. 求教 JS项目的Promise如何使用 [ 75%]

.../初始化舞台 Laya.init(1334, 750); //需要切换的图片资源路径 this.monkey2 = "res/img/monkey2.png"; //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //先加载图片资源,在图片资源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(this.m...

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

73. js预加载声音报错 [ 75%]

...报错 Laya.loader.load(slot_sound_res, Laya.Loader.SOUND, Handler.create(this, onSoundProgress, null, false)); //游戏资源加载进度函数 function onSoundProgress(pro) { console.log("sound" + pro); } 这样写哪里错了? 2016-12-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

74. 发布微信小游戏后 this.preinitialize is not a function [ 74%]

发布微信小游戏后 this.preinitialize is not a function IDE里面调试一切正常,发布微信小游戏以后就出现这个BUG 2018-12-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 7 个回复 云淡风轻 赞...

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

75. 使用Handler 返回name 始终是 undefined [ 74%]

使用Handler 返回name 始终是 undefined public function RegDlg() { this.btn_submit.name = Dialog.SURE; this.closeHandler = Handler.create(this ,this.onClose, ["123"],false); } private function onClose(name:String):void{ if(name == Dialog.SURE){ var di:NormalDlg = new NormalDlg(); di.popupConte...

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

76. 点击的按钮,变成红色字体,怎么写? [ 74%]

...,变成红色字体,怎么写? button001.on(Laya.Event.MOUSE_DOWN, this, function (e) { //点击的按钮变成红色字体???? }); 2018-04-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 w11143672...

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

77. Laya.Geolocation使用报错 [ 74%]

...bleHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, this.updatePosition), Laya.Handler.create(this, this.onError)); 报错如下: TypeError: Cannot set property 'enableHighAccuracy' of undefined 会出现无法找到Laya.Geolocation的各类属性错误,请问该如...

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

78. 发布微信小游戏,sprite的graphics.drawPoly安卓平台会引起花屏 [ 74%]

...等于0  var w: number = 642; var h: number = 12; var g: Laya.Graphics = this._mask.graphics; g.clear();   if (w == 0 || h == 0) return; var points: any[] = []; points.push(0, h); points.push(0, 0); points.push(this._index, 0); points.push(this._index, h); // points.push(0, h); g.drawPoly(0, 0, po...

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

79. 3d 设置相机正交投影,在使用3d转2d 坐标转换不成功 [ 74%]

...;1 __proto.worldToViewportPoint=function(position,out){ Matrix4x4.multiply(this._projectionMatrix,this._viewMatrix,this._projectionViewMatrix); this.viewport.project(position,this._projectionViewMatrix,out); var outE=out.elements; if (out.z < 0.0 || out.z > 1.0){ outE[0]=outE[1]=outE[2]=NaN; }...

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

80. JS中List容器里renderHandler和itemHandler渲染器如何使用 [ 74%]

...请: 与内容相关的链接 提交 1 个回复 cry_11858 赞同来自:  this.list_xxx.renderHandler = this.list_bag.renderHandler || new Laya.Handler(this, this.updateList);         ActivityXXXXXUI.prototype.updateList = function(cell, index)     {         var info = cell.dataSource;  ...

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