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

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

1331. laya.utils.Tween [ 83%]

...属性列表,比如{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

1332. layaflash下构造函数需要注意哪些问题? [ 83%]

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

1333. Laya.timer.once 嵌套 的问题 [ 83%]

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

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

...法理解,还不如设置轴心点容易理解. 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

1335. 组件脚本的内置方法 · LayaAir3.4 · 引擎文档 · LAYABOX [ 83%]

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

1336. 1.5版本:3D Camera无法使用? [ 83%]

...请: 与内容相关的链接 提交 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

1337. 关于graphics镂空的问题https://ask.layabox.com/question/139 [ 83%]

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

1338. Laya.loader.create 进度回调函数执行两次!!! [ 83%]

...数执行两次!!! 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

1339. 可能有个昵称叫做“syy”的一只掉进粪坑里的猪会在下面乱叫 [ 83%]

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

1340. hitTestPrior无效 [ 83%]

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