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

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

651. 场景进行destroy销毁后,再次加载同一场景,就会报错 [ 57%]

...3D.__proto._setParent (file:///D:/H5/bin/libs/laya.core.js:18511:31)   at Stage.__proto.addChild (file:///D:/H5/bin/libs/laya.core.js:13290:9)   at SceneManage.createScene (file:///D:/H5/bin/js/bundle.js:26107:20)   at BattleLoading.<anonymous> (file:///D:/H5/bin/js/bundle.js:18082:57)   a...

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

652. 发布玩一玩应用,屏幕适配没效果 [ 57%]

...用户 • 2018-08-19 13:14 请问一下为什么在 fixedwidth模式下,stage 414*800,浏览器的height 500 我设置一个红点的y位500, 却显示的不在最底部,而在底部上面的位置,不同机型位置还不一样。 m1248799598 • 2018-03-17 14:11 新版本什么时候...

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

653. Laya.Handler.create 加载图片回调参数问题 [ 56%]

....width, Laya.Browser.height, Laya.WebGL); var sp = new Laya.Sprite(); Laya.stage.addChild(sp); sp.loadImage("res/img/popular.png", 0, 0, 0, 0, Laya.Handler.create(this, function (a1, a2) { console.log(a1, a2); }), [100]);   为什么不能把Laya.Hander.create后面带的这个参数传到Function...

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

654. 多行输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

...毕,此方法只执行一次 */ onAwake(): void { this.txtarea.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txtarea.size(500, 200); //大小 this.txtarea.pivot(this.txtarea.width/2, this.txtarea.height/2); //轴心点 this.txtarea.text = "大家好,欢迎各位...

来源: Laya3.0_文档 发布时间: 20251010

655. 点击事件会导致setTimeout setInterval 延迟执行的问题 [ 56%]

...添加下面的方法, 一样会导致setInterval明显延迟执行; Laya.stage.on('click', null, function (e) { console.log.log(`click`); }); 即使我将所有的事件绑定全部注释掉频繁的点击页面也会卡住!!!!! 我在事件的处理函数中设置stopPropagation没有任何作用;...

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

656. List 组件列表渲染异常 [ 56%]

... 请问layaair2.0-js 怎么用程序在list中添加多元素的item 修改stage的scale后,会发生异常情况 请问如何让textinput组件输入密码的时候显示*号? unity到导出场景加载时抛异常,不知所措 开启CastShadow以后,模型会莫名其妙消失,物体渲...

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

657. 射线一直无法获取物体 [ 56%]

...体         Laya.Physics.rayCast(ray, hit, 1000);     }     Laya.stage.on(Laya.Event.MOUSE_UP, this, function () {         var str = "";         if (!hit.sprite3D) {             str = "点击选取的几何体";         }else{             str = hit.sprite3D.name + " ...

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

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

...rite:Laya.Sprite = new Laya.Sprite();                 Laya.stage.addChild(sprite);                 sprite.graphics.drawTexture(rankTexture,0,0,rankTexture.width,rankTexture.height);                  // console.log("再次往开放域发请求");   ...

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

659. laya图片路径问题 [ 56%]

...i = new Laya.Animation();  roleAni.loadImages();  roleAni.play();  Laya.stage.addChild(roleAni);   这样就会报路劲错误   var urls = [ 'img/food/f1.png', 'img/food/f2.png', 'img/food/f3.png', 'img/food/f4.png', 'img/food/f5.png', 'img/food/f6.png', 'img/food/f7.png', 'img/food/f8.png', ...

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

660. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 56%]

...展示界面    Laya.init(scronw, scronh) //设置舞台背景色 Laya.stage.bgColor = '#999999'; //设置适配模式     Laya.stage.scaleMode = "exactfit";     // 无加载失败重试     Laya.loader.retryNum = 0; //加载的数据信息 https://layaair.ldc.layabox.co ... oader var...

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