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

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

1071. 3D粒子特效初始化卡顿 [ 87%]

...有解决方案,以下为示例代码: var sprite= Laya.loader.getRes(this._stlurl) as Laya.Sprite3D; this.skill = Laya.Sprite3D.instantiate(sprite); target.addChild(this.skill); this.Play();   这种卡顿在PC谷歌浏览器上不明显,但手机上就很明显了,另外在IDE的layaair...

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

1072. TypeError: Cannot set property 'material' of undefined [ 87%]

TypeError: Cannot set property 'material' of undefined this.unit3D = Laya.Loader.getRes("Unity/Unit.lh") as Laya.MeshSprite3D; this.scene3D.addChild(this.unit3D);         this.unit3D.transform.localScale = new Laya.Vector3(1, 1, 1); this.unit3D.transform.translate(new Laya.Vector3(0, 0, 0))...

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

1073. Native IOS下获取陀螺仪数据为0 [ 87%]

... //设置陀螺仪的处理 Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onOrientationChange);   private onOrientationChange(absolute:Boolean, info: Laya.RotationInfo):void         {             if (info.alpha === null)             {               ...

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

1074. [LayaAir3]Laya.Slider 的结束拖拽的事件监听 怎么写, [ 87%]

...lider节点上添加下面这段脚本     onAwake(): void {         this.owner.bar.on(Laya.Event.MOUSE_UP, () => {             console.log("aaa");         })     } 2025-07-11 0 1 分享 微博 QZONE 微信 Archangelᴱᴿᴵᑦ 赞同来自: this.owner.on(Laya.Event.CHANGE, thi...

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

1075. 提示“AtlasResourceManager:Dispose the inner Atlas。” [ 87%]

...页面奔溃了,卡滞了 代码类似下面这样 Laya.timer.loop(200, this, showframe); function showframe() {     var url = getimage();     this.sp_video.loadImage(url);     }   2017-08-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

1076. 请教一下:this.tMap.createMap提示parameters do not match any signature of call target. [ 87%]

请教一下:this.tMap.createMap提示parameters do not match any signature of call target. 2d案例中的加载地图的案例 2018-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 137*****535 赞同来自...

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

1077. 微信小游戏怎么加载本地的配置文件 [ 86%]

...戏怎么加载本地配置文件?在laya是可以 public initConfig(){ this.configAsset=[ {url:"res/config/playerCard.json",type:laya.net.Loader.TEXT} ]; Laya.loader.load(this.configAsset,Handler.create(this,this.loadConfigCallBack)) } public loadConfigCallBack(str:boolean){ if(str){ var config; ...

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

1078. 在Unity中设置动画事件(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 86%]

...pt extends Laya.Script3D { constructor(){ super(); //用于表现的方法 this.showMsgFunc = null; } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 ShowMsg() { console.log("ShowMsg"); this.showMsgFunc && this.showMsgFunc(); } } ``` 在加载好场景之后...

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

1079. 关于官方技术文档中《微信飞机大战》实战开发中监听界面是否关闭 [ 86%]

...战》实战开发中监听界面是否关闭 //监听界面是否关闭 this.once(Event.CLOSE,this,onClose); /** * 界面关闭 */ private function onClose():void { console.log("GameStart界面关闭!"); //从舞台移除自己 this.removeSelf(); //只加载一次,因此直接消毁自己 this....

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

1080. [LayaAir3]VideoTexture,VideoNode视频和Image图片内存释放问题 [ 86%]

...下,增加一个消耗video节点的方法:destroyVideoElement() { if (this.element) { this.element.pause(); this.element.src = ""; while (this.element.childElementCount) this.element.firstChild.remove(); } ILaya.timer.clear(this, this.render); } 2、关于Image所说的内存泄漏的问题,你...

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