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

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

181. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

...ent.MOUSE_DOWN, this, this.test2);//设置监听,sprite1或sprite2均可 console.log(this.sprite1.mouseEnabled);//打印父节点sprite1的MouseEnabled的值:true console.log(this.sprite2.mouseEnabled);//打印子节点sprite2的MouseEnabled的值:true } test2(e: Laya.Event) { console.log('mou...

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

182. Image.loadImage 方法加载问题 [ 65%]

...oData:any )   {    this._publicSpaceData = publicSpaceInfoData;    console.log( this._publicSpaceData.icon );    this.bg.loadImage( "res/atlas/gamewindow/" + this._publicSpaceData.icon,0,0,0,0, new Laya.Handler(this, this.imgLoaded) );    this.addChild( this.bg );    this.addChild( ...

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

183. this.bitmap.activeResource is not a function [ 65%]

...ize(Laya.stage.width,Laya.stage.height); if(this._openZone.parent) return; console.log("打开开放域",Laya.Browser.onMiniGame) Laya.stage.addChild(this._openZone); this._openZone.x = vx; this._openZone.y = vy; if(Laya.Browser.onMiniGame){ Laya.Browser.window.sharedCanvas.width = Laya.stage.design...

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

184. 内存释放问题 [ 65%]

...eNames[i]; let curMem: number = Laya.Stat.currentMemorySize// >> 20; console.log("curM:", curMem); path = bigao.Utils.StringTool.formatString(ResUIModuleManager.moduleResPath, muduleName); bigao.control.SkillControl.instance._skillView = null; Laya.loader.clearRes(path, true); // 为什么这...

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

185. matter中有没有类似于unity中的OnCollision碰撞检测函数呀,用js怎么写 [ 65%]

...', this.onCollision);   2.碰撞检测 private onCollision(event): void { console.log("碰撞了..");  var home = _gamePage._mainPage._playPage;  for(var i = 0; i < event.pairs.length; i++) {  var pair = event.pairs[i];  if(!(pair.bodyA.label === 'gun' || pair.bodyB.label == "gun")) continue...

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

186. 关于zOrder层级问题 [ 65%]

关于zOrder层级问题  console.log(arr1.zOrder); //打印结果:3         console.log(this.target.zOrder); //打印结果:10   最后运行时舞台上显示的是arr1(sprite)在target(sprite)之上。 但是在编缉器上显示是正常的。 arr1对象是运行时动态添...

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

187. 通过AnimatorState为Animator添加多个播放状态islooping属性会被覆盖 [ 65%]

...,forerake,false", "443,485,backward,true"]; let state: Laya.AnimatorState; console.log("getANi"); for (let i = 0; i < arr.length; i++) { let arrString = arr[i].split(","); // 创建动画动作状态 state = new Laya.AnimatorState(); //设置动作状态的名称 state.name = arrString[2]; // 开...

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

188. 深入理解LayaAir引擎架构和实现原理(二)项目调试原理及完美开发调试方案 [ 65%]

....ts', onwarn:(waring,warn)=>{ if(waring.code == "CIRCULAR_DEPENDENCY"){ console.log("warnning Circular dependency:"); console.log(waring); } }, treeshake: false, //建议忽略 plugins: [ typescript({ tsconfig:workSpaceDir + "/tsconfig.json", check: true, //Set to false to avoid doing any diagnos...

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

189. [LayaAir3]性能面板 FrustumCulling 和 RenderNode 节点数据一样 [ 64%]

...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 大量sprite如何优化性能 请教下微信小游戏的内存和数据缓存? 1.7.20beta有bug,帧属性面板打不开 laya如何重写console.log 打...

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

190. [0]GPUInstance在半透明渲染队列下不会自动合批 [ 64%]

...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 JS 是没有自动补全提示吗 Laya 安卓端 在服务端运行指令layadcc ./ 后进不去,提示 assetId is old 和 init dcc fail。然后过五六个...

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