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

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

941. Laya.Sprite3D.instantiate克隆的对象过多,渲染不出来 [ 88%]

...内容相关的链接 提交 2 个回复 luckybryce 赞同来自: //注:this.m_circle 为原始对象,且它是由20个扇形平成的圆环 this.m_vLastPos = this.m_circle.transform.localPosition; for(index = 0; index < 10; index++){ var circle = Laya.Sprite3D.instantiate(this.m_circle) this...

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

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

943. 获取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

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

945. 请问在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

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

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

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

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

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

949. 鼠标事件监听 异常触发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

950. 陀螺仪接口无效呢?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