大约有 2,416 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0078 秒)
Laya_社区(1456) Laya2.0_文档(592) Laya3.0_文档(82) Laya3.0_api(65) Laya_示例(61) Laya2.0_api(60) laya_api(54) Laya2.0_示例(46)
...ialog.width=300; dialog.height=600; //var bg = new Laya.Image('comp/img_bg.png'); //dialog.addChild(bg); var button = new Laya.Button('comp/button.png'); button.label='Hello World!'; button.name = Laya.Dialog.CLOSE; button.width=260; button.height=500; button.pos(35, 35); dialog.addChild(button); di...
来源: Laya_社区 发布时间: 20190117
...xtBox.cacheAs = "bitmap"; // …省略其他代码… ```  (图2) ### **五、文字描边** 在运行时,设置了描边的文本比没有描边的文本多调用一次绘图指令。此时,文本对CPU的使用量和文本的数量成正比。因此,...
来源: Laya2.0_文档 发布时间: 20210715
...compId":2,"child":[{"type":"Sprite","props":{"y":0,"x":0,"texture":"ani/p1.png"},"compId":3}],"animations":[{"nodes":[{"target":3,"keyframes":{"scaleY":[{"value":1,"tweenMethod":"linearNone","tween":true,"target":3,"key":"scaleY","index":0},{"value":0.5,"tweenMethod":"linearNone","tween":true,"targe...
来源: Laya_社区 发布时间: 20210111
...his.size(Item.WID,Item.HEI); var img1 =new Laya.Image("bg0.png"); var img2 =new Laya.Image("bg1.png"); this.pos(0,0); img1.size(100,30); img2.size(100,50); img1.name ="img1"; img2.name ="i...
来源: Laya_社区 发布时间: 20190522
...游戏时,发布界面是这样子的,如图1所示。  (图1) ##### 关于发布目录 源根目录与发布目录比较容易理解,通常用默认的就可以。如果是复制项目目录导致目录变化的,要检查一下目录是不是正确。另外,**目录...
来源: Laya2.0_文档 发布时间: 20210714
...D4FEBBF4-3A6D-4197-98CE-3671577EAE95/Library/Caches/localstorage/logo/logo.png 2018-01-28 23:29:52.937914+0800 qimiaomuchanIOS[5815:1707048] require(/sdcard/layabox/scripts/config.js) 2018-01-28 23:29:52.940149+0800 qimiaomuchanIOS[5815:1707048] found the file in the package:scripts/config.js 2018-0...
来源: Laya_社区 发布时间: 20180129
...nction GameMain() { this.isDestroyed = false; this.PathBg = "../../res/bg2.png"; this.PathFly = "../../res/fighter/fighter.atlas"; //初始化引擎 Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage...
来源: Laya_示例 发布时间: 20260303
...private loadUI(): void { Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(this, function (): void { this.changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "切换动作")) as Laya.Button; this.changeActionButton.size(160, 40); ...
来源: Laya_示例 发布时间: 20260303
... 14:46 @qian:run的时候访问不到 layali • 2018-01-18 13:34 nonjpg和png这里您选的什么 qian • 2018-01-18 13:38 你给我的这个模型没有贴图 选什么都没影响 qian • 2018-01-18 12:03 non别选这个 你用的贴图是那个png还是jpg的 选那个 layali • 2018-01-18 1...
来源: Laya_社区 发布时间: 20180118
...台 Laya.stage.addChild(Img); //加载显示图片 Img.loadImage("res/tt.png",w,h); return Img; } /**创建红色滤镜位图方法**/ function creteRedFilter(){ //颜色滤镜矩阵,红色 var colorMatrix = [ 1, 0, 0, 0, 0, //R 0, 0, 0, 0, 0, //G 0, 0, 0, 0, 0, //B 0, 0, 0, 1, 0, //A ]; //创建红...
来源: Laya_社区 发布时间: 20170811