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

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

1471. 显示对象的遮罩调用clear后还是能看到显示对象 [ 81%]

...: 补充,如果这样做就可以达到效果,但是屏幕会闪一下 this.img.mask = null; this.imgmk.graphics.clear(); this.img.mask = this.imgmk; 2020-04-16 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 遮罩尺寸如果小于0.5就无效的,直接拿掉遮罩即可。 2020-...

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

1472. 使用百度地图显示当前位置(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 81%]

...tion.enableHighAccuracy = true; Geolocation.watchPosition(Handler.create(this, updatePosition), Handler.create(this, onError));   // 绑定convertToBaiduCoord作用域 __JS__("this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this)"); } ``` ​ 由于本例不需要使用LayaAir的...

来源: Laya2.0_文档 发布时间: 20210715

1473. Shader预编译解决方案 [ 81%]

...:Laya.DefineDatas  参考接口 _render(context) {     ...     this._material._shaderValues._defineDatas.cloneTo(comDef);     var shader = context.shader = this._material._shader.getSubShaderAt(0)._passes[0].withCompile(comDef);     ... }  Laya.ShaderPass -> withCompil...

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

1474. 打地鼠游戏中,锤子被挡在背景图后面了,请问怎么调整?谢谢 [ 81%]

... 加到舞台上时是加到GameViwe上, 不是直接加到Laya.stage上 this.hammer = new Hammer(); this.addChild(this.hammer); this.hammer.start();   2018-08-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Cherry006 相关问题 ...

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

1475. 手机QQ厘米秀GLTF模型使用说明(TypeScript-小游戏适配文档-QQ小游戏) [ 81%]

...truct(); // gltf 模型资源对象 struct.gltfURL = {}; for (const key in this.gltfFile) { struct.gltfURL[key] = this.gltfFile[key]; } // 个性化配置对象 / 可省略 struct.customConfigURL = "res/self/gltfMode/gltfBin/face.json"; // makeup装扮对象 / 可省略 struct.makeupConfigURL = this...

来源: Laya2.0_文档 发布时间: 20210715

1476. Laya.Loader.getRes请教 [ 81%]

...教 Laya.loader.load("res/atlas/games/game_13/image.atlas", Handler.create(this, this.createView)); 在createView回调里面调用 let tex: Texture = Laya.Loader.getRes("image/shake_01.png"); 想拿图集中的某一张图片。发现拿不到这张图片。 但是我换个默认的图集Laya.loade...

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

1477. 使用Image的时候,资源引用计数一直增加,导致清理不掉 [ 81%]

...AutoBitmap类_setDrawGridCmd()函数,修改内容如下: if(lastOne == this._drawGridCmd){this._one = newcmd;}  改成 if(lastOne == this._drawGridCmd){ lastOne.recover(); this._one = newcmd;} 渲染命令没有回收导致。 2023-09-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个...

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

1478. 关于多点触控e.touches问题 [ 81%]

关于多点触控e.touches问题 Laya.stage.on(Laya.Event.MOUSE_DOWN, this, onCtrlMoveRockerTouchDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, onCtrlMoveRockerTouchDown);     function onCtrlMoveRockerTouchDown(e) {    console.log("onCtrlMoveRockerTouchDown()");    this.ctrlMoveRockerPosX...

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

1479. 关于Panel组件橡皮筋效果无效 [ 81%]

关于Panel组件橡皮筋效果无效 this._list = new Laya.Panel(); listParent.addChild(this._list); this._list.vScrollBarSkin = ""; this._list.vScrollBar.elasticDistance = 100; 我设置了vScrollBar的elasticDistance 属性,但是并没有橡皮筋的效果。可是List组件又可以,这...

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

1480. 火狐浏览器运行出现花屏 [ 81%]

... 赞同来自: Error: WebGL warning: Exceeded 16 live WebGL contexts for this principal, losing the least recently used one. Error: WebGL warning: texSubImage2D: Texture has not been initialized prior to a partial upload, forcing the browser to clear it. This may be slow. Error: WebGL warning: texSu...

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