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

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

1081. 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

1082. 请问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

1083. 微信小游戏分包实战(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

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

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

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

1085. UI-TextArea [ 86%]

...ge.bgColor = "#232628"; Stat.show(); Laya.loader.load(skin, Handler.create(this, this.onLoadComplete)); } onLoadComplete() { const TextArea = Laya.TextArea; let ta = new TextArea(""); ta.skin = skin; ta.font = "Arial"; ta.fontSize = 18; ta.bold = true; ta.color = "#3d3d3d"; ta.pos(100, 15); ta.size(...

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

1086. 微信飞机大战中“开始页面”逻辑功能关于js继承问题 [ 86%]

...的时候,AS新建了GameStart并 extends GameStartUI,然后直接用this改按钮的状态; 问题: 我用JS的时候找了下用class可以实现extends的效果,但不知道怎么写,就是改变不了按钮的状态,请问这块用JS要怎么写呢,我只能写到以下这一步...

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

1087. Sprite的destroy [ 86%]

Sprite的destroy destroyChildren() { if (this._children) { for (var i = 0, n = this._children.length; i < n; i++) { this._children[0].destroy(true); } } 这几行代码来自laya.core.js的12544行开始的,for循环里的this._children[0]是不是应该是this._children[i]?还是我的使用...

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

1088. 照着官方文档写的 Dialog 报错? [ 86%]

...r LoadResource = function () { LoadResource.prototype.init = function () { this._container = new Sprite(); Laya.stage.addChild(this._container); Laya.loader.load(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, this.onPreloaded)); }; LoadResource.prototype...

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

1089. wx.getFileSystemManager is not a function [ 86%]

...的场景 physics3D is not a function 调用动画结束on方法,报错this.zombieAnimator.on is not a function api readFile success callback function undefined 用微信开发者调试的时候出现document.createTextNode is not a function ide导出ui时,UI代码显示不正常在小游戏中...

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

1090. ts怎么调用input file弹框选择本地文件 [ 86%]

...         }             }              var _this:* = this;              fileReader.onload = function(evt):void              {                  if(Browser.window.FileReader.DONE==fileReader.readyState)               ...

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