大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0075 秒)
Laya_社区(3323) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...: 补充,如果这样做就可以达到效果,但是屏幕会闪一下 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
...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
...: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
... 加到舞台上时是加到GameViwe上, 不是直接加到Laya.stage上 this.hammer = new Hammer(); this.addChild(this.hammer); this.hammer.start(); 2018-08-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Cherry006 相关问题 ...
来源: Laya_社区 发布时间: 20180302
...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
...教 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
...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
关于多点触控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
关于Panel组件橡皮筋效果无效 this._list = new Laya.Panel(); listParent.addChild(this._list); this._list.vScrollBarSkin = ""; this._list.vScrollBar.elasticDistance = 100; 我设置了vScrollBar的elasticDistance 属性,但是并没有橡皮筋的效果。可是List组件又可以,这...
来源: Laya_社区 发布时间: 20170901
... 赞同来自: 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