大约有 4,034 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0078 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...内容相关的链接 提交 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
... 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
...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
... 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
...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
...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
...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
...t还有loop参数,控制台就会报错,但是动画能正常播放。 this.ani.play(0,true,'XiuXian');控制台报错:ani not found: BlueEmoji.ani#XiuXian。但是游戏中动画正常播放了~~不知道是不是我那里姿势不对。但是如果this.ani.play('Normal'); Normal是默认动...
来源: Laya_社区 发布时间: 20180204
...件上监听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
陀螺仪接口无效呢?Gyroscope.instance.on(Event.CHANGE, this, onOrientationChange); 什么原因呢 2017-10-15 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 game4d 赞同来自: var firstTime = true; laya....
来源: Laya_社区 发布时间: 20171015