大约有 4,034 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0080 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...en((templet: Laya.Templet) => { //创建模式为1,可以启用换装 this.mArmature = templet.buildArmature(0); this.mArmature.x = 300; this.mArmature.y = 350; this.mArmature.scale(0.5, 0.5); this.owner.addChild(this.mArmature); //设置动画播放完成后,调用completeHandler继续播放...
来源: Laya3.0_文档 发布时间: 20240910
...ndler = Laya.Handler; var WebGL = Laya.WebGL; /***水平滚动条资源**/ this.skins = ["res/ui/hscroll.png", "res/ui/hscroll$bar.png", "res/ui/hscroll$down.png", "res/ui/hscroll$up.png"]; Laya.init(800, 600, WebGL); //画布垂直居中对齐 Laya.stage.alignV = Stage.ALIGN_MIDDLE; //画布水平...
来源: Laya2.0_文档 发布时间: 20210714
...下 2017-11-12 0 1 分享 微博 QZONE 微信 Vivapercuore 赞同来自: this.body = new Laya.Animation(); this.body.loadAtlas(config[this.type].imgBang, Laya.Handler.create(this, this.onLoad)); this.body.width = config[this.type].width this.body.height = config[this.type].height onLoad(){ Tween.to(...
来源: Laya_社区 发布时间: 20171111
...ndler = Laya.Handler; var WebGL = Laya.WebGL; /***垂直滚动条资源**/ this.skins = ["res/ui/vscroll.png", "res/ui/vscroll$bar.png", "res/ui/vscroll$down.png", "res/ui/vscroll$up.png"]; // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居中对齐 Laya.stage.al...
来源: Laya2.0_文档 发布时间: 20210715
...值 for (i=1;i<10;i++) { var item = {pic:{skin:'cards/'+i+'tong.jpg'}}; this.data.push(item); } console.log(this.data); this.list1.dataSource = this.data; this.list1.x = 50; this.list1.y = 500; this.list1.getChildAt(0).height = 100; this.list1.vScrollBarSkin = ""; this.list1.hScrollBarSkin = "com...
来源: Laya_社区 发布时间: 20170914
Laya.stage.on(Laya.Event.RESIZE,this, this.ChangeSize); private ChangeSize() { console.log("---------------") if(Laya.Browser.window.innerHeight < Laya.Browser.window.innerWidth) { console.log("横屏") } else { console.log(...
来源: Laya_社区 发布时间: 20230516
...存在,内存中场景及引用其的对象无法销毁 this.scene = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; this.camera = new Laya.Camera(); this.camera.transform.translate(new Laya.Vector3(0, 2, 5)); th...
来源: Laya_社区 发布时间: 20191102
...prite; private flag: boolean = false; constructor() { Laya.init(1000,800); this.img = new Laya.Sprite; this.img.loadImage(this.plane1); Laya.stage.addChild(this.img); this.img.graphics.clear(); this.img.loadImage(this.plane2); Laya.stage.addChild(this.img) } } new Main(); 出来的结果是两张图...
来源: Laya_社区 发布时间: 20180406
...; init(); } public init ():void { this.bg_img.loadImage("ui/bg.jpg",0,0,Laya.stage.width,Laya.stage.height,Laya.Handler.create(this,this.onComplete)); Laya.stage.on(Laya.Event.RESIZE,this,this.onResize); } onComplete():void { ...
来源: Laya_社区 发布时间: 20161116
...port default class HtmlTest extends Laya.Sprite { constructor() { super(); this.init(); } init() { this.bg = new Laya.Sprite(); this.bg.graphics.drawRect(0, 0, 200, 200, '#ccc'); this.addChild(this.bg); this.htmlTxt = new Laya.HTMLDivElement(); this.htmlTxt.style.fontSize = 20; this.htmlTxt.style.wi...
来源: Laya_社区 发布时间: 20210107