大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0103 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。 duration:int — 花费的时间,单位毫秒。 ease:Function (default = null) — 缓动类型,默认为匀速运动。 complete:Handler (default = null) ...
来源: Laya2.0_api 发布时间: 20190513
...B.as的代码:package { public class B extends A { public function B() { this.data = "layaFlash";//这里的修改无效 trace("data is " + this.data); super(); this.data = "layaFlash";//有效的修改属性代码 trace("data is " + this.data); } } } 2015-12-11 0 0 分享 微博 QZONE 微信 为...
来源: Laya_社区 发布时间: 20151211
...Laya.timer.once 嵌套 的问题 layaair 1.7.7beta Laya.timer.once(800, this, function () { Laya.SoundManager.playSound("sound/readygo.mp3", 1, Laya.Handler.create(this, this.playReadyComp)); }) private playReadyComp (){ Laya.timer.once(800, this, function () { Laya.SoundManager.playMusic('sound/...
来源: Laya_社区 发布时间: 20170629
...法理解,还不如设置轴心点容易理解. 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
...; constructor() { super(); } //组件被启用后执行 onEnable(): void { this._level = Math.round(Math.random() * 5) + 1; this._text = this.owner.getChildByName("levelTxt") as Laya.Text; this._text.text = this._level + ""; } //每帧更新时执行 onUpdate(): void { //让持续盒子旋转 (this....
来源: Laya3.0_文档 发布时间: 20251010
...请: 与内容相关的链接 提交 1 个回复 183*****755 赞同来自: this.scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; this.camera = (this.scene.addChild(new Laya.Camera(0, 1, 1000))) as Laya.BaseCamera; this.camera.transform.translate(new Vector3(0, 0, 500)); 这样用即可...
来源: Laya_社区 发布时间: 20161017
...ect(0,0,100,100,'#ff0000'); Laya.stage.addChild(redBox); redBox.on("click",this,function(){ trace("click redbox"); }); redBox.on("mouseover",this,function(){ redBox.graphics.clear(); redBox.graphics.drawRect(0,0,100,100,'#00ff00'); }); redBox.on("mouseout",this,function(){ redBox.graphics.clear(); r...
来源: Laya_社区 发布时间: 20170710
...数执行两次!!! Laya.loader.create("Main/SMain.ls",Laya.Handler.create(this,this.on3DComplete),Laya.Handler.create(this,this.onProgress,null,false)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%"); } 输出结果: 0.19186599730944645 0.52519...
来源: Laya_社区 发布时间: 20180620
...pe.DestroyJoint=function(a){ box2d.ENABLE_ASSERTS&&box2d.b2Assert(!this.IsLocked()); if(!this.IsLocked()){ var b=a.m_collideConnected; a.m_prev&&(a.m_prev.m_next=a.m_next); a.m_next&&(a.m_next.m_prev=a.m_prev); a===this.m_jointList&&(this.m_jointList=a.m_next); var c=...
来源: Laya_社区 发布时间: 20181213
...itTestPrior进行鼠标事件监测: viewStack.on(Laya.Event.MOUSE_DOWN, this, this.onStageMouseDown); img.on(Laya.Event.MOUSE_DOWN, this, this.onImageMouseDown); viewStack.addChild(img); 然而不管设置是true还是false,都是子元素先检测到mousedown事件,请问是不是hitTestP...
来源: Laya_社区 发布时间: 20170917