大约有 520 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0043 秒)
...../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey1 = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey2 = Laya.Sprite3D.instantiate(layaMonkey1, scene, false, new L...
来源: Laya_示例 发布时间: 20251130
... bg = CreateObj.createSprite(McUrlMgr.LOAD_BG_Path); this.addChild(bg); bg.x = 0; bg.y = 0; var bg2:Sprite = CreateObj.createSprite(McUrlMgr.LOAD_BG_Path); bg2.x = 0; ...
来源: Laya_社区 发布时间: 20161223
...ePhoenixes(); // 动态背景渲染 evalBgColor(); Laya.timer.frameLoop(1, this, renderBg); } function createPhoenixes() { var scaleFactor = Math.min( Laya.stage.width / (phoenixWidth * 2), Laya.stage.height / phoenixHeight); // 加了混合模式的凤凰 var blendedPhoenix = createAnimation(); ble...
来源: Laya_示例 发布时间: 20251130
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createText(); } createText() { const Text = Laya.Text, Event = Laya.Event; this.txt = new Text(); Laya.stage.addChild(this.txt); this.txt.overflow = Text.SCROLL; this.txt.text = "Layabox是HTML5引擎技术提供商与...
来源: Laya2.0_示例 发布时间: 20251130
... } this.length--; if (index!==this.length){ var end=this.elements[this.length]; // @xd added, 添加end是存存在判断 ...
来源: Laya_社区 发布时间: 20190618
...好像是为了js和As3写的。 关于dialog组件,关闭后的事件 _this.onClosed(function () { console.log("动画关闭后的请求") })this指向dialog,但是点击空白区域触发不了,可以解答一下怎么调用么。 2018-05-15 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180515
...spine 连续两次scale操作会闪一下 对一个spine进行缩放操作 this.skel.scale(0.9, 0.9); this.skel.scale(1, 1); spine会移动到左上角,在移回来 显示效果就是会闪一下 附件 : --> demo.zip 2019-04-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20190423
...SoundChannel的示例? SoundManager.playSound(_url, _loop, new Handler(this, _fn)); var channel:SoundChannel = new SoundChannel(); SoundManager.addChannel(channel); _btn.on(Event.CLICK, this, soundClick); function soundClick(evt:Event){ alert("channel.isStoped:"+channel.isStoped); if (channel.isSt...
来源: Laya_社区 发布时间: 20170116
... 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)...
来源: Laya_示例 发布时间: 20251130
...点击某个架的时候,我获取点击的子节点改变反照率颜色 this.owner.getChildAt(0).meshRenderer.sharedMaterial.albedoColor = new Laya.Vector4(0.0, 1.0, 0.0, 1.0); 然后,所有架子的这个子节点都改变了. 附件 : --> 2019-04-16 添加评论 免费帖 --> 分享 微博 QZ...
来源: Laya_社区 发布时间: 20190416