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

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

811. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 44%]

...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

812. Swift中接入Native,执行完drawInRect后不执行update了! [ 44%]

...执行的 怎样跨页面执行脚本命令? hit事件执行效率探讨 MOUSE_OVER注册的响应函数,如果鼠标一直在动,多久会执行一次,一帧吗?和frameLoop一样? Laya.loader.create 进度回调函数执行两次 重发问题: 点击页面会导致setTimeout setInterva...

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

813. videoNode在安卓上不能播放 [ 43%]

...分代码:     onAwake(): void {         Laya.stage.on(Laya.Event.MOUSE_DOWN, () => {             Laya.loader.load("resources/916.mp4").then(() => {                 this.play();             });         })     }同时建议您将“项目设置->缩放模式...

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

814. Cannot read property 'load' of null [ 43%]

...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

815. 关于laya生成的canvas定位问题导致内部事件不正确 [ 43%]

...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

816. discard property,please use transform's property instead [ 43%]

...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

817. TypeError: Cannot read property 'length' of null [ 43%]

...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

818. 【简单跑酷--JS版】---Lv.6 终篇 [ 43%]

...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

819. SCALE_FIXED_WIDTH适配屏幕的问题 [ 43%]

....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

820. Sprite-遮罩-放大镜 [ 43%]

...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