大约有 1,326 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0053 秒)
... this.txt.fontSize=20; this.txt.color="#ffffff"; Laya.stage.addChild(this.txt); this.txt.on(Laya.Event.MOUSE_DOWN, this, startScrollText); } function startScrollText(){ this.prevX = this.txt.mouseX; this.prevY = this.txt.mouseY; Laya.stage.on(Laya.Event.MOUSE_M...
来源: Laya_社区 发布时间: 20170810
...事件是挂在ShurikenParticleSystem上的。 var wjqs:Sprite3D = scene.addChild(Sprite3D.load("fff.lh")) as Sprite3D; wjqs.once(Event.HIERARCHY_LOADED, this, function():void { var aaa:ShurikenParticleSystem = wjqs.getChildAt(0).getChildAt(0).particleSystem; aaa.on(Event.COMPLETE, this, function(...
来源: Laya_社区 发布时间: 20170512
...(); this.chat_lab.pos(2, 2); this.chat_lab.size(495,329); this.rect_sprite.addChild(this.chat_lab); .... //输入了一大堆聊天记录后,内容超过了329px,虽然限高height:329px;并加入了overflow-y:scroll;,但没有出现滚动条而且还漏了。 var str = "<div style='positio...
来源: Laya_社区 发布时间: 20210121
...020-05-15 01:43 浏览: 3332 关注: 9 人 彪 • 2020-04-06 10:50 小球.addChild(摄像机) 微笑着拒绝 • 2020-04-14 20:44 大佬,你这个摄像机是怎么实现跟随刚体的呢,求帮助... 时光机器 • 2019-10-20 08:48 怎么才能同步呢?放同父物体下会导致摄像头...
来源: Laya_社区 发布时间: 20190528
...; //effect3D.active = true; this.addChild(effect3D); //console.hylog("_path:",_path); SetUVEffect(effect3D); } 附件 : --> effect3d.rar 2018-06-01 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20180601
...r = "#ffff00";this.txt.fontSize = 20;this.txt.color = "#ffffff";Laya.stage.addChild(this.txt);this.txt.on(Laya.Event.MOUSE_DOWN,this,startScrollText);}/*开始滚动文本*/function startScrollText(){this.prevX = this.txt.mouseX;this.prevY = this.txt.mouseY;Laya.stage.on(Laya.Event.MOUSE_MOVE,this,s...
来源: Laya_社区 发布时间: 20180125
...is.bullet); flyer.pos(Laya.stage.mouseX, Laya.stage.mouseY); this._gameBox.addChild(flyer); this._chains.points="35,35,80,80"; //****新增代码*****,需增加private _chain; } /**开始游戏,通过激活本脚本方式开始游戏*/ startGame(): void { if (!this._started) { this._start...
来源: Laya_社区 发布时间: 20181130
...直接异步加载 var layaMonkey:Sprite3D = scene.addChild(Sprite3D.load(url+"LayaScene_sharedunity/sharedunity.lh")) as Sprite3D; var zombieAnimator:Animator =layaMonkey.getChildAt(0).getComponentByType(Animator) as Animator;...
来源: Laya_社区 发布时间: 20180122
...nUI.list.renderHandler = new Laya.Handler(this, this.onRender); Laya.stage.addChild(this.mainUI); }; GameMain.prototype.onRender = function (cell, index) { if(index <0 || index >= dataSource.length) return; var data = dataSource[index]; var chBox = cell.getChildByName('chBox'); var img = cell....
来源: Laya_社区 发布时间: 20170207
...wSomething() { sp = new Sprite(); Laya.stage.addChild(sp); //绘制圆角矩形,自定义路径 sp.graphics.drawPath(0, 0, [ ["moveTo", 5, 0], ["lineTo", 105, 0], ["arcTo", 110, 0, ...
来源: Laya_社区 发布时间: 20170711