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

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

1151. 关于多个小动画打包到一个图集动画的问题 [ 64%]

...t;hero_down"); body = new Laya.Animation() //播放动画 body.play(0,true,'hero_down'); 如果这样的话我这里执行了之后会出现一个报错 laya.core.js:4467 Uncaught TypeError: url.indexOf is not a function 如果我单纯只想拿一张小图的话就不会报错,是可以执...

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

1152. laya.events.Event [ 64%]

...ned By  altKey : Boolean[read-only] 表示 Alt 键是处于活动状态 (true) 还是非活动状态 (false)。 Event  charCode : Boolean[read-only] 包含按下或释放的键的字符代码值。字符代码值为英文键盘值。 Event  ctrlKey : Boolean[read-only] 表示 Ctrl 键是处于...

来源: Laya2.0_api 发布时间: 20190513

1153. [LayaAir3]调用renderTexture.getDataAsync且同时勾选camera的hdr或msaa,webgl必报错 [ 64%]

...代码为 1282   不勾选hdr msaa或者在代码里 camera.enableHDR = true或camera.msaa = true也不会报错 只有手动勾选才会报错       附件 : --> 2025-09-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...

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

1154. LayaNative中加载自己缓存的资源 [ 64%]

...nch_File(url); var fr:* = new window.conch_FileReader(); fr.setIgnoreError(true); fr.onload = function():void { if(fr.result){ window.fs_writeFileSync(cachepath, fr.result); onComplete && onComplete.runWith(cachepath); } else { onError && onError.runWith("no data"); } }; // fr.onprog...

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

1155. ide2.6.0beta编译报错:This syntax requires an imported helper but module 'tslib' cannot be found [ 64%]

... "target": "es6",     "noEmitHelpers": false,     "sourceMap": true,     "removeComments": true,      "baseUrl": ".",     "paths": {       "tslib": [         "D:/Programs/LayaAirIDE/resources/app/node_modules/tslib/tslib.d.ts"       ]     },   ...

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

1156. 3D中摄像机绕物体旋转该如何实现? [ 64%]

... extends Laya.Script { // Text m_debugTip; public canRotation_X: boolean = true; public canRotation_Y: boolean = true; public canScale: boolean = true; /// <summary> /// Around center. /// </summary> //public target: Transform3D; public AroundPos: Vector3 = new Vector3(); /// <summary...

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

1157. laya.resource.PrefabImpl_API3.0 [ 64%]

...esource.lock Defined in laya/resource/Resource.ts:103 是否加锁,如果true为不能使用自动释放机制。 Optional name name: string Inherited from Resource.name Defined in laya/resource/Resource.ts:105 名称。 url url: string Inherited from Resource.url Defined in laya/resource/Resource...

来源: Laya3.0_api 发布时间: 20231115

1158. 类似抠图、挖空效果的实现 [ 64%]

...        box.hitArea = area;             box.mouseEnabled = true;             box.on("click", this, onBoxClick);                          //绘制黑色区域,不被抠图             var black:Sprite = new Sprite();             black.grap...

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

1159. 缓动-时间线 [ 64%]

...y:100, scaleX:1, scaleY:1, alpha:1}, 2000, null, 0); this.timeLine.play(0, true); this.timeLine.on(Event.COMPLETE, this, this.onComplete); this.timeLine.on(Event.LABEL, this, this.onLabel); } onComplete() { console.log("timeLine complete!!!!"); } onLabel(label) { console.log("LabelName:" + label); }...

来源: Laya2.0_示例 发布时间: 20260303

1160. laya.media.SoundManager_API3.0 [ 64%]

...c stopSound Properties Static autoReleaseSound autoReleaseSound: boolean = true Defined in laya/media/SoundManager.ts:90 音效播放后自动删除。 default true Static musicVolume musicVolume: number = 1 Defined in laya/media/SoundManager.ts:25 背景音乐音量。 default 1 Static playbackRate...

来源: Laya3.0_api 发布时间: 20231115