大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0080 秒)
Laya_社区(3323) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...博 QZONE 微信 flyByself 赞同来自: 在用AS TS写法 也很繁琐 this. this. this. 个人觉得还是as简单 2018-02-21 0 0 分享 微博 QZONE 微信 157*****121 赞同来自: 多人协同项目,必须的as, ts ,js 用起来都非常蛋疼!对于as 淘汰的说话。。。laya只...
来源: Laya_社区 发布时间: 20180217
...改了一下,你把这个代码替换一下就好了 if(hero == null) { this.tiledmap.name = "xx00"; var viewRect = new Rectangle(0,0,1080,1100); this.tiledmap.createMap("../laya/assets/map/beitianting.json",viewRect,Handler.create(this,onMapCreated)); } 仙魔世界测试.rar 2017-11-20 0 0 ...
来源: Laya_社区 发布时间: 20171120
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createTexts(); } private createTexts(): void { this.createText('left', 1, null, 100, 10); this.createText('center', 2, "#00BFFF", 155, 150); this.createText('right', 3, "#FF7F50", 210, 290); } private createText(align: s...
来源: Laya_示例 发布时间: 20251219
... txt.color = "#ffffff"; Laya.stage.addChild(txt); txt.on(Event.MOUSE_DOWN, this, startScrollText); } /* 开始滚动文本 */ function startScrollText(e) { prevX = txt.mouseX; prevY = txt.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, scrollText); Laya.stage.on(Event.MOUSE_UP, this, finishScrollText)...
来源: Laya2.0_文档 发布时间: 20210714
...2.2.0 还是老规矩, 官方2D示例修改, 将文字设为斜体. this.tipLbll.italic = true; //这是重点 this.tipLbll.bold = false; this.tipLbll.text = "A测试B"; 进游戏死掉, 并未显示文字 android_studio.zip 附件 : --> 2019-07-30 添加评论 免费帖 --> 分享 微博...
来源: Laya_社区 发布时间: 20190730
...-23 10:57 那怎么找里面的那个list w1114367261 • 2018-05-23 11:57 this.storelist.renderHandler=new Handler(this,onRender);//当list刷新时触发 并发送Box,index this.storelist.mouseHandler = new Handler(this,onMouse);//当list被点击时触发 并发送event,index } public function ...
来源: Laya_社区 发布时间: 20180522
...eSystem的,我首先获取了粒子作为Sprite3D,这个可以获取到this.bow = this.scene3D.getChildByName("Bow") as Laya.Sprite3D; 然后我拿不到他的粒子系统,var par: Laya.ShurikenParticleSystem= this.bow.getComponent(Laya.ShurikenParticleSystem);结果是空的,求教一下!...
来源: Laya_社区 发布时间: 20181218
...aya.SoundManager.playSound("res/sound/Award.mp3", 1, new Handler(this, this.loopSounder)); Barrier.prototype.loopSounder = function() { this.loopSound = true; } 文件是一个499字节的mp3文件 没法上传 Prajna • 2018-05-14 11:03 @w1114367261 其实应该是mp3文件的问题,...
来源: Laya_社区 发布时间: 20180514
...对代码进行压缩有,会有很多重复的一下语句 var __extends = this && this.__extends || function() { var extendStatics = Object.setPrototypeOf || { __proto__: [] }instanceof Array && function(d, b) { d.__proto__ = b } || function(d, b) { for (var p in b) if (b.hasOwnProp...
来源: Laya_社区 发布时间: 20171212
...ite);//将此 sprite 对象添加到显示列表。 sprite.on(Event.CLICK, this, onClickSprite);//给 sprite 对象添加点击事件侦听。 shape = new Sprite();//创建一个 Sprite 类的实例对象 sprite 。 shape.graphics.drawRect(0, 0, 100, 100, "#ccff00", "#ff0000", 2);//绘制一个有...
来源: Laya3.0_api 发布时间: 20231115