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

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

1971. Laya.loader.clearTextureRes引起的内存泄露以及恢复图片显示闪烁 [ 73%]

...都有这个bug。 代码如下:             Laya.loader.load(this.skPath.replace(".atlas",".png"),Laya.Handler.create(this,function(bit){                 var arr = Laya.Loader.getAtlas(this.skPath);                 arr.forEach(resUrl=>{          ...

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

1972. 加载3D场景报错:TypeError: bt.btBvhTriangleMeshShape create is not a function [ 73%]

...rror: bt.btBvhTriangleMeshShape_create is not a function             this._btShape = bt.btBvhTriangleMeshShape_create(this._physicMesh);                                ^^                                                TypeError: bt.btBvhTriangleMeshShape...

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

1973. input text中文输入法时会调用3次INPUT事件 [ 73%]

input text中文输入法时会调用3次INPUT事件 this.input_text.on(Laya.Event.INPUT, this, this.onInput);   //切换到中文输入法,输入数字,会调用三次,而英文输入法不会 private onInput(ipt: Laya.TextInput) {         console.log("这里会调用三次"); } 2017-05...

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

1974. 求助,屏幕旋转后滚动条没有跟随旋转 [ 73%]

...og { export class WanF extends ui.dialog.WanFUI { constructor() { super(); this.rotation = 90; this.pos(1060, 280); let panel = new Laya.Panel(); panel.size(638, 527); panel.vScrollBarSkin = "CommDialog/vscroll.png"; this.sp_wanfa.addChild(panel); let t = new Laya.Label(); t.width = 638; t.fontSize ...

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

1975. Tween.to 执行失败 [ 73%]

...函数 Tween.to(sprite,{x:Laya.stage.mouseX,y:sprite.y,update:new Handler(this,onWalk(hDir)),complete:Handler.create(this,function(){ Tween.to(sprite,{x:sprite.x,y:Laya.stage.mouseY,update:new Handler(this,onWalk(vDir))}) ; })}) ; console.log(sprite.x) ; console.log(sprite.y) ; console.log("once don...

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

1976. Laya3D场景加载问题 [ 73%]

...ctor() { super(); }     onAwake(): void {         Laya.loader.create(this.resource, Laya.Handler.create(this, this.onPreLoadFinish));     }     onPreLoadFinish() {         //初始化3D场景         let test = Laya.Loader.getRes("gate/Conventional/Test.ls")         let scene =...

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

1977. 图片mask失效问题. [ 73%]

...g;    photoimg.loadImage(imgn,0,0,500,500);    Laya.timer.once(1000, this, function():void{     maskimg.loadImage("http://img.diyphoto.cn/Mask/im ... ot%3B,0,0,500,500);         }); 延时加载  的效果. 模拟加载的东西很多的时候 2016-09-23 0 8 分享 微博 QZONE 微...

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

1978. 鼠标穿透问题 [ 73%]

...a.loader.load([{url:"image/comp.json", type:Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { createList(); createItems(); createLoading(); _list.addChild(_loadingBg); Laya.stage.addChild(_list); } protected function createList():void { _list = new List(); _list.i...

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

1979. 请问在设计模式下制作的UI页面,到底怎么在代码里使用???官方教程不一样 [ 73%]

...las/ListPage.atlas", "res/atlas/template/ButtonTab.atlas"], Handler.create(this, this.onLoaded)); 而我F12发布,根本没有这个ListPage.atlas,只有ButtonTab.atlas     附件 : --> 2017-09-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

1980. 场景切换造成的FPS下降的优化思路请教 [ 73%]

...听的移除,大致如下 /**销毁**/ private function dispose():void { this.removeEvent(); this.removeChildren(); this.removeSelf(); }visible(非可见区域的对象尽量从显示列表移除或者设置visible=false。),设置为visible=false的显示对象,将不会再进行渲染提...

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