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

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

1071. 请教一下: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

1072. 提示“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

1073. 微信小游戏怎么加载本地的配置文件 [ 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

1074. 在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

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

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

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

1076. [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

1077. laya打包微信小游戏后调用Laya.SoundManager.stopMusic()后xmmini.js中this._audio.stop()报错问题 [ 86%]

...a打包微信小游戏后调用Laya.SoundManager.stopMusic()后xmmini.js中this._audio.stop()报错问题 如题。使用的laya 2.4beta版本。微信开发者工具使用 Stable v1.02.1911180版本。   附件 : --> 2020-03-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

1078. 请问Laya如何使用第三方物理库 [ 86%]

...件 :(   建立一个单例里面跑Cannon.World private constructor() { this.world = new CANNON.World(); this.world.allowSleep = true; Laya.timer.frameLoop(1, this, this.Step); } public Step() { this.world.step(1 / 60); }   再把CANNON.Body包装成组件 export class CannonRigidbody extends Lay...

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

1079. 动画播放完后,怎么知道?Animation.play() [ 86%]

...,怎么知道?Animation.play() //创建一个动画作为飞机的身体 this.feijiBody=new Laya.Animation(); //把飞机的身体添加到容器 this.addChild(this.feijiBody); //播放动画 this.feijiBody.play(0,false,this.feijiName);播放结束后 出个提示框,alert("播放结束"); 怎么写...

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

1080. 微信小游戏分包实战(TypeScript-小游戏适配文档-微信小游戏) [ 86%]

...ui:any; constructor(){ //监听按钮btnA的点击事件,触发后处理 this.GameMain.newUI.btnA.on(Laya.Event.CLICK, this, this.showB); } //显示B页 private showB():void { this.GameMain.showUI(this.ui.bUI,this.GameMain.newUI) //监听按钮btnB的点击事件,触发后处理 this.GameMain.ne...

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