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

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

281. 裁切图片后,该用什么方式去重绘出裁切后的图片 [ 70%]

...ctx.clear()         const len = points.length;         console.log("ppppppppppppppp ", points)         ctx.drawPoly(00, points, "#FFFFFF", "#FF00FF", 1)     } 附件 : --> 2020-04-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

282. [LayaAir3]V3.2 | 调试结果不一致,导致无法判断结果? [ 70%]

...  onStart() {     //@ts-ignore     window.camera = this.camera;     console.log("Game start", this.camera._up);     console.log(       "Game start",       this.camera._up.x,       this.camera._up.y,       this.camera._up.z     );   } } 附件 : --> testProject.zip 2024-10-29 ...

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

283. QQ里扫一扫打开网页,不响应Laya.Event.FOCUS事件,导致失去焦点后,声音异常 [ 70%]

...und("sound/bg1.mp3", 0); Laya.stage.on(Laya.Event.FOCUS, null, function(){ console.log("获取焦点") Laya.SoundManager.playSound("sound/bg1.mp3", 0); }) Laya.stage.on(Laya.Event.BLUR, null, function(){ console.log("失去焦点") }) 2018-08-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

284. HIERARCHY_LOADED 和 LOADED有什么区别?为什么对scene不起作用 [ 70%]

...cene()); scene.once(Laya.Event.HIERARCHY_LOADED, null, function (sprite) { console.log("scene HIERARCHY_LOADED"); }); scene.once(Laya.Event.LOADED, null, function (sprite) { console.log("scene LOADED"); });HIERARCHY_LOADED 和 LOADED有什么区别?为什么对scene不起作用? 2017-06-19 添...

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

285. 加载模型后如何取得在Unity的Transform.Rotation属性 [ 70%]

...false); 我可以看到模型transform.rotation值的变化,         console.log(this.needle.transform.rotation); 但是,我查看         console.log(this.needle.transform.rotationEuler); 却是却是 undefined。 2017-12-06 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复...

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

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

...s.length; i++) { str += ` {${i} : ${data.touches[i].pos.toString()}}`; } } console.log("drag mouse down", str); }); Laya.stage.on(Laya.Event.MOUSE_UP, this, (data: Laya.Event) => { let str = ""; if (data.touches) { for (let i = 0; i < data.touches.length; i++) { str += ` {${i} : ${data.touches...

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

287. http 请求 once 的 回调参数,如何传递和接收? [ 70%]

..., "post","json",null);   回调方法: success:function (e,args) {     console.log(e); //此行可以得到响应内容     console.log(args);  //此行无法获取自定义参数? } 请问如何获取/传递 自定义参数。 2018-03-04 添加评论 免费帖 --> 分享 微博 QZONE ...

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

288. 关于3d的碰撞检测 [ 70%]

...碰撞器相交检测 Laya.Physics.rayCast(this.ray, this.outHitInfo, 0); console.log("x:" + rayOrigin.x + " y:" + rayOrigin.y + " z" + rayOrigin.z) this.phasorSpriter3D.begin(Laya.WebGLContext.LINES, LayaAir3D.camera); this.phasorSpriter3D.line(this._linePos, this._color, this.ray.origin, this._col...

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

289. 请问如何监听html的button元件ontouchstart,ontouchend等事件 [ 70%]

...ment.createElement('button'); this.btn_CloseWebiFrame.onclick = () => { console.log("onclick"); };  oncontextmenu也没有问题。this.img_closeWebiFrame.oncontextmenu = () => { console.log("aaa4"); this.img_closeWebiFrame.src = "SlotGameTemplate/phone_public_setting_source/phone_btn_setting...

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

290. 屏幕适配-屏幕适配 [ 70%]

..." + "(" + modes[index] + ")"; } function onClick(e) { //输出坐标信息 console.log("mouse:", Laya.stage.mouseX, Laya.stage.mouseY); } function onResize() { //输出当前适配模式下的stage大小 console.log("size:", Laya.stage.width, Laya.stage.height); } })();module laya { import Sprite = ...

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