大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0077 秒)
Laya_社区(3323) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
... 代码如下 var Tww = laya.utils.Tween; to0(); function to0() { Tww.to(this.lis, { alpha: 0.5 }, 500, null, Handler.create(this, to1)); } function to1() { Tww.to(this.lis, { alpha: 1 }, 500, null, Handler.create(this, to0)); } 在AS中是没有问题的。 2018-05-24 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20180524
...接 提交 1 个回复 LayaAir3 赞同来自: 可否试试用这个方法 this.scene.physicsSimulation.raycastAllFromTo(this.from, this.to, this.hitResults);, 在门的前面和后面分别放两个cube,再测试一下 2023-03-17 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被...
来源: Laya_社区 发布时间: 20230316
... null = null; onStart() { console.log("Game start"); // 初始化 protobuf this.initializeProtobuf(); // 初始化 WebSocket 连接 this.initializeWebSocket(); } // 初始化 protobuf 并加载消息定义 private initializeProtobuf() { // ChatMessage 是 .proto 文件中定义的消息类型,包...
来源: Laya3.0_文档 发布时间: 20251010
...ivate */ __proto._computeFullKeyframeIndices=function(){ var anifullFrames=this._fullFrames=[]; var templet=this._templet; var cacheFrameInterval=this._cacheFrameRateInterval *this._cachePlayRate; //刚体动画时 templet 是AnimationClip对象 没有getAnimationCount方法!!! for (var i=0,iN...
来源: Laya_社区 发布时间: 20170630
... 下面的圆形金币是图片,我添加了 on(Laya.Event.MOUSE_DOWN, this,this.mouseHandlerDown,); on(Laya.Event.MOUSE_UP, this,this.mouseHandlerUp,[i]);[/i] [i] [/i] [i]为什么在这个bg.png上面点击,下面的金币也会有点击事件?[/i] 附件 : --> 2018-01-31 添加评论 免费...
来源: Laya_社区 发布时间: 20180131
...法编译了 也没看到那里出错 这个是什么原因 报错 The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten 附件 : --> 2020-07-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...
来源: Laya_社区 发布时间: 20200703
...属性列表,比如{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