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

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

951. Byte writeArrayBuffer的Bug [ 88%]

...   if (length==0)length=arraybuffer.byteLength-offset;         this.ensureWrite(this._pos_+length);         var uint8array=new Uint8Array(arraybuffer);         this._u8d_.set(uint8array.subarray(offset,offset+length),this._pos_);         this._pos_+=length;    ...

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

952. 获取Sprite位置问题 [ 88%]

...extends Laya.Sprite { public body :Laya.Animation; constructor(){ super(); this.body = new Laya.Animation(); Laya.Animation.createFrames(["res/war/hero_fly1.png","res/war/hero_fly2.png"],"fly"); this.addChild(this.body); this.body.play(0,true,"fly"); //获取动画大小区域 var bound:Laya.Rectang...

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

953. laya如何用audio播放音频? [ 88%]

... private elentAutio: HTMLAudioElement; constructor(){     super();     this.btn_play.on(Laya.Event.CLICK, this, this.onPlay);     this.elentAutio = <HTMLAudioElement>document.createElement('audio');     this.elentAutio.src="res/10.mp3"; } onPlay():void{     this.elentAutio.play(); } ...

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

954. 请问在2.0版本的js中,如何获取mouse_move的鼠标坐标 [ 88%]

...js中,如何获取mouse_move的鼠标坐标 img.on(Laya.Event.MOUSE_MOVE,this,this.onmousemove); apesCtn.addChild(img); ........ onmousemove(e) { //console.log("e="+JSON.stringify(e)); for (var property in e) { console.log(property+"="+e[property]); } console.log("========================"); /**...

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

955. 在layaIde运行点击按钮播放声音,但是发布到微信工具里面运行声音就不播放了 [ 88%]

...ound("Sound/BtnClick.mp3",1);     //图片变化     Laya.Tween.to(this.owner,{scaleX:this.originalScaleX*0.9,scaleY:this.originalScaleY*0.9},100,Laya.Ease.backIn,Laya.Handler.create(this,      function(){      Laya.Tween.to(this.owner,{scaleX:this.originalScaleX,scaleY:this.origin...

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

956. mac 下翻译出来的顺序问题 [ 88%]

...ebgl.canvas.save.SaveBase var SaveBase=(function(){ function SaveBase(){ //this._valueName=null; //this._value=null; //this._dataObj=null; //this._newSubmit=false; } __class(SaveBase,'laya.webgl.canvas.save.SaveBase'); var __proto=SaveBase.prototype; Laya.imps(__proto,{"laya.webgl.canvas.save.ISaveD...

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

957. 取色器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 88%]

...创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skin).then( ()=>{ this.onColorPickerSkinLoaded(); } ); } private onColorPickerSkinLoaded(e: any = null): void { let colorPicker: Laya.ColorPicker = new Laya.ColorPicker(); colorPicker.selectedColor = "#ff0033"; colorP...

来源: Laya3.0_文档 发布时间: 20251010

958. 图集打包与动画 [ 88%]

...t还有loop参数,控制台就会报错,但是动画能正常播放。 this.ani.play(0,true,'XiuXian');控制台报错:ani not found: BlueEmoji.ani#XiuXian。但是游戏中动画正常播放了~~不知道是不是我那里姿势不对。但是如果this.ani.play('Normal'); Normal是默认动...

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

959. 鼠标事件监听 异常触发mouseout [ 88%]

...件上监听mouseDown、mouseOut 就能复现 Enheng • 2022-05-05 17:24 this.sp.on(Laya.Event.MOUSE_DOWN, this, this.text) this.sp.on(Laya.Event.MOUSE_OUT, this,this.text) Enheng • 2022-05-05 17:26 按道理来说,我未移出只做点击动作,应该只执行一遍text(),但是它执行...

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

960. 陀螺仪接口无效呢?Gyroscope.instance.on(Event.CHANGE, this, onOrientationChange); 什么原因呢 [ 88%]

陀螺仪接口无效呢?Gyroscope.instance.on(Event.CHANGE, this, onOrientationChange); 什么原因呢 2017-10-15 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 game4d 赞同来自: var firstTime = true; laya....

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