大约有 2,310 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0058 秒)
Laya_社区(1513) Laya2.0_文档(259) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(80) Laya3.0_文档(75) Laya2.0_api(74) laya_api(70)
...ion onLoaded():void { image=new Image(); image.skin="logo.png"; Laya.stage.addChild(image); Laya.stage.on(Event.CLICK,this,onClick); } private function onClick():void { image.skin="bg.jpg"; } } }方法2:使用graphics.drawTexture的方式】 package { import laya.display.Sprite; import laya.events...
来源: Laya_社区 发布时间: 20170628
...ar scene = Laya.Scene.load("LayaScene_layaScene/layaScene.ls"); Laya.stage.addChild(scene); var camera = new Laya.Camera(0, 0.1, 1000); //加载到场景 scene.addChild(camera); 2018-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20181107
...文件 tl.loadAnimation("./card/card.ani"); //添加到舞台 Laya.stage.addChild(tl); //播放Animation动画 tl.play(); tl.on(Event.COMPLETE, this, () => {console.log('end')}); } 2018-08-23 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...
来源: Laya_社区 发布时间: 20180817
...xt属性赋值 txt.text = "hello_world"; txt.color = "#ffffff"; Laya.stage.addChild(txt); } } } new laya.HelloLayabox(); ``` 这个时候我们就可以看到txt已经添加到舞台上了,显示了txt中白色的hello_world。 接着我们给文本添加一些其他的字体样式,粗体、斜...
来源: Laya2.0_文档 发布时间: 20210715
...ext(); text1.text = "ceshi1"; Laya.stage.addChild(text1); text1.fontSize = 40; text1.x = 280; text1.y = 180; let filter1 = new Laya.ColorFilter(); filter1.setColor("#00FF7F"); ...
来源: Laya_社区 发布时间: 20210914
.../img_paomaDi.png"); textDi.sizeGrid = "5,5,5,5"; textDi.size(580,30); this.addChild(textDi); _divElement = new HTMLDivElement(); _divElement.style.fontSize = 18; _divElement.style.color = "#ffffff"; //_divElement.style.strokeColor = "#34edde"; _divElement.style.wordWrap = false; //_divElement.style....
来源: Laya_社区 发布时间: 20171205
...2(distY, distX) + Math.PI) * 180 / Math.PI; lasers.push(laser); Laya.stage.addChild(laser); frequency *= 0.9; } for (var i = 0; i 60 * 0.3) { laser.alpha *= 0.9; laser.scaleY = laser.alpha; if (laser.alpha = []; private tick: number = 0; private frequency: number = 80; private type: number = 0; cons...
来源: Laya_示例 发布时间: 20251219
...t.length) * z, 0, bg.width / letterList.length, bg.height / 2); Laya.stage.addChild(letter); letter.on("click", this, (function(para){ console.log("z:"+z+";para:"+para+";letterList[para]:"+letterList[para]); return function () { alert("z:"+z+";para:" + para + "I'm letter " + letterList[para]); }; })...
来源: Laya_社区 发布时间: 20180810
...t(0, 0, 30, 30, null, "#e6e4ef", 1); box.x = i * 30; box.y = j * 30; boxSp.addChild(box); } } boxSp.cacheAs = "bitmap"; this.addChild(boxSp); } boxSp.cacheAs = "bitmap"; 如果去掉这句话可以显示 是内部设置了?? 2016-10-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20161008
...ge(); sp.name = "logo_" + nums; sb.name = "logo_bg_" + nums; userBoxSprite.addChild(sb); userBoxSprite.addChild(sp); // sb.loadImage(newBg1, x, y, singleWidth, singleHeight); sb.skin = newBg1; sb.pos(x,y); sb.size(singleWidth, singleHeight); // sp.loadImage(imgUrl, x, y, singleWidth, singleHeight); ...
来源: Laya_社区 发布时间: 20180427