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

大约有 458 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0048 秒)

161. 播放视频只有声音没有图像 [ 69%]

...ginGame extends Laya.Scene { constructor() { super(); LoginGame.instance = this; Laya.MouseManager.multiTouchEnabled = false; this.loadScene("LoginGame.scene"); } onEnable() { SoundManager.playMusic("audio/梅林茂 - 静かな古都.mp3", 0); this.login_game_button.on(Laya.Event.CLICK, this,this.on...

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

162. Spine骨骼动画点击区域偏移 获取不到width height [ 69%]

...te _factory: Laya.Templet;  constructor(spine, x, y, speed) {         this._factory = new Laya.Templet();         this._factory.loadAni(`../bin/res/spine_model/${spine}.sk`);         this._factory.on(Laya.Event.COMPLETE, this, this.parseComplete, [x, y]);     }     private parseComp...

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

163. Animation创建和销毁的问题 [ 69%]

... Laya.init(1136, 640,WebGL); trace("ok..."); Laya.stage.on(Event.KEY_DOWN, this, this.onKeydown); } private function onKeydown(event:Event):void { var self:* = this; if(event.keyCode === Keyboard.SPACE) { //移除动画 if(testAnim1) { testAnim1.clear(); testAnim1.removeSelf(); testAnim1 = null; tes...

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

164. BackGround.super(this);这个报错 Cannot read property 'call' of undefined [ 69%]

BackGround.super(this);这个报错 Cannot read property 'call' of undefined 2018-01-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_Aaron 赞同来自: 你具体描述一下你出现问题的环境, 以...

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

165. 1.7.6版本 刚体动画加载 [ 69%]

...ivate */ __proto._computeFullKeyframeIndices=function(){ var anifullFrames=this._fullFrames=[]; var templet=this._templet; var cacheFrameInterval=this._cacheFrameRateInterval *this._cachePlayRate; //刚体动画时 templet 是AnimationClip对象 没有getAnimationCount方法!!! for (var i=0,iN...

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

166. 飞机大战实战(第四讲)中的机身居中问题 [ 69%]

...法理解,还不如设置轴心点容易理解. playAction(action): void { this.body.play(0, true, action); var bounds: Laya.Rectangle = this.body.getBounds(); //设置机身轴心从左上角到中心 this.body.pivot(bounds.width / 2, bounds.height / 2); //设置机身居中 //this.body.pos(-bounds...

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

167. unity导出的3D动画模型,导入 laya环境报错: node._setParent is not a function [ 69%]

...play(); chrome 调试:  addChild(node) {             if (!node || this.destroyed || node === this)                 return node;             if (node._zOrder)                 this._setBit(Const.HAS_ZORDER, true);             if (node._parent === this) {       ...

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

168. layaAir中Animation无法获得宽高,很多逻辑无法判断 [ 69%]

layaAir中Animation无法获得宽高,很多逻辑无法判断 this.animation = new Animation(); this.animation.loadAtlas( _path ); this.animation.interval = _speed; // 设置播放间隔(单位:毫秒) this.animation.play(); this.addChild( this.animation ); this.animation.width 一直为0 ...

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

169. 图集动画没有显示 [ 69%]

... 'res/atlas/cloud.json'; Laya.loader.load(AniConfPath, Laya.Handler.create(this, this.createAnimation), null, Laya.loader.ATLAS); function createAnimation() { var ani = new Laya.Animation(); ani.loadAtlas(AniConfPath); ani.interval = 30; ani.index = 1; ani.play(); Laya.stage.addChild(ani); } 2017-09...

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

170. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 69%]

...the .lh file root type must be Scene,please use other function to  load  this file.;at api readFile success callback function Error: Scene: the .lh file root type must be Scene,please use other function to  load  this file.     at MyScene.__proto.onAsynLoaded (http://127.0.0.1:59022/game/code....

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