大约有 2,310 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0327 秒)
Laya_社区(1513) Laya2.0_文档(259) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(80) Laya3.0_文档(75) Laya2.0_api(74) laya_api(70)
...下 var ape = new Laya.Sprite(); ape.loadImage("res/star.png"); Laya.stage.addChild(ape); ape.x = Laya.stage.width / 2; ape.y = Laya.stage.height / 2; ape.scale(0.3,0.3); ape.pivot(628,613); Laya.Tween.to(ape,{rotation:360},60000); 其中转一圈的时间设置为60s或者更长,native下卡顿是...
来源: Laya_社区 发布时间: 20180423
...: " + imageHtml.contextWidth + ", " + imageHtml.contextHeight); Laya.stage.addChild(imageHtml); 上述代码在Laya中运行 正确显示了 图片 控制台输出: size: 200, 200 contextSize: 0, 0 如何获取真实大小? 2017-11-18 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20171118
...IndexInReflectionList _initialize _processActive _setIndexInReflectionList addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getCom...
来源: Laya3.0_api 发布时间: 20231102
... ... ], XXX, XXX); 加载: var effect = actor.mView.root.addChild(Laya.Sprite3D.load("Resources/Player/nan_jianshi/Effect/dmc_skycity_attack1/.lh")); effect.once(Laya.Event.HIERARCHY_LOADED, this, function(){ var part...
来源: Laya_社区 发布时间: 20170614
...击事件 Laya.stage.once(Laya.Event.MOUSE_DOWN,this,function () { scene.addChild(layaMonkey); this._layaMonkey = layaMonkey; //设置缩放 var tmpLocalScale = layaMonkey.transform.localScale; tmpLocalScale.setValue(0.3, 0.3, 0.3); layaMonkey.transform.localScale = tmpLocalScale; /*添加部分*/ _...
来源: Laya2.0_文档 发布时间: 20210715
...击事件 Laya.stage.once(Laya.Event.MOUSE_DOWN,this,function () { scene.addChild(layaMonkey); this._layaMonkey = layaMonkey; //设置缩放 var tmpLocalScale = layaMonkey.transform.localScale; tmpLocalScale.setValue(0.3, 0.3, 0.3); layaMonkey.transform.localScale = tmpLocalScale; /*添加部分*/ _...
来源: Laya2.0_文档 发布时间: 20210715
...某个值后,mask出bug 如图所示,在GameUI设置缩放后,并且addChild到sp1的红色块数量为50时,会出现黑块(红色块为10时不会出现);GameUI不设置缩放也不会出现这个问题。 附件 : --> testpro.zip 2020-02-22 添加评论 免费帖 --> 分享 微博 Q...
来源: Laya_社区 发布时间: 20200222
...(-50,-50,100,100); drawCir.size(100,100); drawCir.pos(200,200); Laya.stage.addChild(drawCir); drawCir.on(Event.CLICK,this,onDrawCirClick); 2017-09-05 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 浪货界扛把子 相关问题 分享...
来源: Laya_社区 发布时间: 20170905
... list.renderHandler = new Laya.Handler(this, this.updateItem); this.owner.addChild(list); // 设置数据源为对应图片的路径 var data: any[] = []; for (var i: number = 0; i < 10; ++i) { data.push("resources/res/ui/listskins/1.jpg"); data.push("resources/res/ui/listskins/2.jpg"); data.push...
来源: Laya3.0_文档 发布时间: 20251010
...rite=new Sprite(); sp.graphics.drawRect(0,0,200,300,"#000fff"); Laya.stage.addChild(sp); sp.size(200,300); sp.pivot(sp.width/2,sp.height/2); sp.pos(200,200); Laya.timer.frameLoop(1,this,onLoopRotation,[sp]); } private function onLoopRotation(sp:Sprite):void { sp.rotation++; } } } 2017-09-05 0 0 分...
来源: Laya_社区 发布时间: 20170830