大约有 856 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0049 秒)
Laya_社区(759) Laya2.0_文档(27) Laya_示例(19) Laya3.0_文档(16) Laya2.0_示例(14) Laya2.0_api(9) laya_api(9) Laya3.0_api(3)
...his.player); //监听 按下 弹起 事件 Laya.stage.on(laya.events.Event.MOUSE_DOWN, this, this.onMouseDown); //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } _proto.onLoop = function(){ // 检测人物是否踩在地板上面了 for(var i = this.mapFloor.numChildr...
来源: Laya_社区 发布时间: 20160801
...执行的 怎样跨页面执行脚本命令? hit事件执行效率探讨 MOUSE_OVER注册的响应函数,如果鼠标一直在动,多久会执行一次,一帧吗?和frameLoop一样? Laya.loader.create 进度回调函数执行两次 重发问题: 点击页面会导致setTimeout setInterva...
来源: Laya_社区 发布时间: 20190510
...分代码: onAwake(): void { Laya.stage.on(Laya.Event.MOUSE_DOWN, () => { Laya.loader.load("resources/916.mp4").then(() => { this.play(); }); }) }同时建议您将“项目设置->缩放模式...
来源: Laya_社区 发布时间: 20231007
...rty 'displayObject' of null 鼠标自定义样式官方有支持吗,Laya.Mouse.hide()会报Uncaught TypeError: Cannot read property 'cursor' of undefined错误 Failed to load resource: net::ERR_FILE_NOT_FOUND retry to load问题 Uncaught TypeError: Cannot read property 'props' of undefined 资源...
来源: Laya_社区 发布时间: 20171124
...oadImage('images/item_5.png'); Laya.stage.addChild(img); img.on(Laya.Event.MOUSE_DOWN, img, onStartDrag); function onStartDrag(){ console.log(this); clickIndex++; msgDiv.html('图片选中了' + clickIndex + '次'); // img.startDrag(); } // Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; // Laya.stage....
来源: Laya_社区 发布时间: 20170427
...operty 'props' of undefined 鼠标自定义样式官方有支持吗,Laya.Mouse.hide()会报Uncaught TypeError: Cannot read property 'cursor' of undefined错误 Uncaught TypeError: Cannot read property 'dir' of undefined 这是什么报错啊? 发布的时候,报错 [ERROR] Cannot read property...
来源: Laya_社区 发布时间: 20180725
...operty 'props' of undefined 鼠标自定义样式官方有支持吗,Laya.Mouse.hide()会报Uncaught TypeError: Cannot read property 'cursor' of undefined错误 Cannot read property 'displayObject' of null Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 构建APP And...
来源: Laya_社区 发布时间: 20200309
...his.player); //监听 按下 弹起 事件 Laya.stage.on(laya.events.Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.on(laya.events.Event.MOUSE_UP, this, this.onMouseUp); //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } _proto.onLoop = function(){ // 检测人...
来源: Laya_社区 发布时间: 20160803
....ALIGN_MIDDLE; //Laya.stage.frameRate = Laya.Stage.FRAME_MOUSE; Laya.stage.frameRate = Laya.Stage.FRAME_SLOW; //注册自定义按钮控件 Laya.View.regComponent("ScaleButton", ScaleButton); Laya.loader.load("...
来源: Laya_社区 发布时间: 20181213
...p.pivot(50, 50); // 设置mask bg2.mask = maskSp; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, () => { bg2.x = -Laya.stage.mouseX * 2; bg2.y = -Laya.stage.mouseY * 2; maskSp.x = Laya.stage.mouseX; maskSp.y = Laya.stage.mouseY; }); } } new Sprite_MagnifyingGlass();module laya { import Sprite = Laya.Spr...
来源: Laya2.0_示例 发布时间: 20251219