大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0103 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...有的时候会崩溃在这里, Cannot read property 'dir' of undefined this.basePath=this._atlasPath?Loader.getAtlas(this._atlasPath).dir:this._url.split(".swf")[0]+"/image/"; 2018-04-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20180403
...per(); } onEnable(): void { //设置初始速度 let rig: Laya.RigidBody = this.owner.getComponent(Laya.RigidBody); rig.setVelocity({ x: 0, y: -10 }); } onTriggerEnter(other: any, self: any, contact: any): void { //如果被碰到,则移除子弹 this.owner.removeSelf(); } onUpdate(): void { //如...
来源: Laya3.0_文档 发布时间: 20251010
...回复 cmxStar 赞同来自: 我们项目也遇到过这bug, 改成 delete this._map[handler.key]; 2023-10-26 0 2 分享 微博 QZONE 微信 _Nodep_ 赞同来自: 嗯,合理 2023-10-26 0 0 分享 微博 QZONE 微信 开房车环游世界 赞同来自: Tween 偶尔停止 我记得当年做laya1.0...
来源: Laya_社区 发布时间: 20231025
...d等事件 如题,我可以如下为button加上onclick的监听事件。this.btn_CloseWebiFrame = laya.utils.Browser.window.document.createElement('button'); this.btn_CloseWebiFrame.onclick = () => { console.log("onclick"); }; oncontextmenu也没有问题。this.img_closeWebiFrame.oncontextm...
来源: Laya_社区 发布时间: 20180126
...: 补充,如果这样做就可以达到效果,但是屏幕会闪一下 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
...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
... 加到舞台上时是加到GameViwe上, 不是直接加到Laya.stage上 this.hammer = new Hammer(); this.addChild(this.hammer); this.hammer.start(); 2018-08-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Cherry006 相关问题 ...
来源: Laya_社区 发布时间: 20180302
...教 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