大约有 1,254 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0063 秒)
Laya_社区(850) Laya2.0_文档(116) Laya3.0_api(79) Laya2.0_api(73) laya_api(68) Laya3.0_文档(54) Laya2.0_示例(8) Laya_示例(6)
...= new Laya.Image(); bg.skin = "res/bg.png"; Laya.stage.addChild(bg); })(); 在layaIDE,微信开发者工具模拟器,和iPhoneX真机上的显示效果分别如图: 附件 : --> demo.zip 2018-06-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20180604
... new Laya.Box() bgWrapper.zOrder = 0 let bg = new Laya.Sprite(); bgWrapper.addChild(bg) Laya.stage.addChild(bgWrapper) bgWrapper.x = 375 bgWrapper.y = 667 bg.loadImage("../res/image/interface/intro_bg.png",0,0,1500,1500); bg.pivot(750,750) bg.alpha = 1 bg.rotation = 20 2018-05-19 1 0 分享 微博 Q...
来源: Laya_社区 发布时间: 20180519
...oadImage("linkgame_back.jpg"); background.cacheAsBitmap = true; Laya.stage.addChild(background); // 设定标题 var title = new laya.display.Text(); title.text = g_game_title; title.font = "Arial"; title.fontSize = 50; title.stroke = 2; title.strokeColor = "Black"; title.pos(g_stat_width / 2 - titl...
来源: Laya_社区 发布时间: 20160623
...ONE 微信 183*****755 赞同来自: 如果选Scene var scene = Laya.stage.addChild(Laya.Scene.load("xxx")); 如果选Sprite3D var sprite3d = scene.addChild(Laya.Sprite3D.load("xxx")); 2017-05-16 0 0 分享 微博 QZONE 微信 wangweihui 赞同来自: 请问 我用unity导出到laya里之后 场景...
来源: Laya_社区 发布时间: 20170515
...xt.color = "#ff0000"; text.text = "你好"; text.pos(100, 100); Laya.stage.addChild(text); text = new Text(); text.fontSize = 30; text.color = "#ff0000"; text.text = "你好"; text.font = "remember"; text.pos(100, 200); Laya.stage.addChild(text); } } } 或者在config.js var assetFontData...
来源: Laya_社区 发布时间: 20191211
... = new Laya.Sprite(); sp.graphics.drawTexture(texture,300,300); Laya.stage.addChild(sp); var ani: Laya.Animation = new Laya.Animation(); ani.loadAtlas("res/start.json"); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ani.play(...
来源: Laya_社区 发布时间: 20170329
...,所以需要开发者加个延时. JQCN • 2018-03-10 22:03 我在用addChild方法添加组件时也遇到了这获取高度不正确的问题,加个延时就获取正常。这应该算是异步渲染了吧,手册也没说明addChild是异步方法,也没有找到相应的回调方法。...
来源: Laya_社区 发布时间: 20180118
...0xFF00FF); sp1.graphics.drawRect(100,100,200,200); sp1.graphics.endFill(); addChild(sp1); sp1.addEventListener(MouseEvent.CLICK,onSp1); var sp2:Sprite=new Sprite(); sp2.graphics.beginFill(0xFFFF00); sp2.graphics.drawCircle(200,200,100); sp2.graphics.endFill(); addChild(sp2); sp2.mouseEnabled=false; ...
来源: Laya_社区 发布时间: 20151102
...ya.Handler(this, this.updateListItem); this.publicSpaceList.array = ; this.addChild( this.publicSpaceList ); public setPublicSpacesData (_publicSpacesInfo:any) : void ///调用这个方 传入参数 里面有每一个图片的名字 { this.publicSpacesInfo = _publicSpacesInfo; this.publicSpaceLi...
来源: Laya_社区 发布时间: 20170923
... txt.pos(200, 200); txt.color = "#FFFFFF"; txt.text = "000000"; Laya.stage.addChild(txt); var spr = new Sprite(); spr.size(50, 50); Laya.stage.addChild(spr); spr.texture = "images/circle.png"; txt.text = spr.texture.getPixels(25,25,1,1);希望通过使用getPixels方法使txt的文本内容变...
来源: Laya_社区 发布时间: 20190401