大约有 1,608 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0063 秒)
Laya_社区(977) Laya2.0_文档(192) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(61) Laya2.0_api(57) laya_api(53) Laya3.0_文档(29)
... Laya.stage.bgColor = "#CCBBAA"; var panel = new Panel(); Laya.stage.addChild(panel); panel.size(460, 704); rule_ct = new Sprite(); Laya.stage.addChild(rule_ct); rule_ct.loadImage("rule_txt.png", 0, 0, 460, 0, Handler.create(this, function(){ panel.addChild(rule_ct); })); } } } ...
来源: Laya_社区 发布时间: 20170215
... sprite0.cacheAsBitmap = true; Laya.stage.addChildAt(sprite0,0); var sprite1:Sprite = new Sprite(); sprite1.loadImage("creatRoom/background_bk.png"); sprite1.pos(Laya.stage._width-512...
来源: Laya_社区 发布时间: 20170314
...g.centerX = 0; img.centerY = -70; img.skin = "res/monkey2.png"; Laya.stage.addChild(img); //文字 var text = new Laya.Label(); text.text = "游戏的水平方向"; text.color = "gray"; text.fontSize = 100; text.centerX = 0; text.centerY = 50; Laya.stage.addChild(text); } Laya.init(0, 0, Laya.WebGL)...
来源: Laya2.0_文档 发布时间: 20210715
...niUrls("die",6),"dizziness"); roleAni.play(0,true,"dizziness"); Laya.stage.addChild(roleAni); } /** * 创建一组动画的url数组(美术资源地址数组) * @param aniName 动作的名称,用于生成url * @param length 动画最后一帧的索引值, */ private function aniUrls(aniName:...
来源: Laya2.0_文档 发布时间: 20210715
... mainCan = new Sprite(); Laya.stage.addChild(mainCan); dialogCan = new Sprite(); Laya.stage.addChild(dialogCan); tipCan = new Sprite(); ...
来源: Laya_社区 发布时间: 20180306
...g.centerX = 0; img.centerY = -70; img.skin = "res/monkey2.png"; Laya.stage.addChild(img); //文字 var text:Laya.Label = new Laya.Label(); text.text = "游戏的水平方向"; text.color = "gray"; text.fontSize = 100; text.centerX = 0; text.centerY = 50; Laya.stage.addChild(text); } Laya.init(0, 0, ...
来源: Laya2.0_文档 发布时间: 20210715
....create(this, this.completeHandler)); completeHandler(): void { Laya.stage.addChild(Laya.loader.getRes("LayaScene_Scene/Scene.ls")); Laya.stage.addChild(Laya.loader.getRes("LayaScene_Scene/Assets/BakerHouse/Models/Baker_house-Baker_house.lm")) } 在第二个addchild的时候报错了!!!! 201...
来源: Laya_社区 发布时间: 20181221
....WebGL); Laya.Stat.show(); const container = new Laya.Sprite(); Laya.stage.addChild(container); const mask = new Laya.Sprite(); mask.graphics.drawPoly(0, 0, [0, 0, 484, 0, 1483, 950, 0, 950], '#ff0000'); // container.addChild(mask); container.mask = mask; const ani = new Laya.Animation(); container....
来源: Laya_社区 发布时间: 20170915
...Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box); // 主要逻辑代码 var Stage = Laya.Stage; var List = Laya.List; var Handler = Laya.Handler; var WebG...
来源: Laya_社区 发布时间: 20180731
...ya.stage.on(Event.RIGHT_MOUSE_DOWN, this, Destruction); scene = Main.box3D.addChild(new Scene3D()) as Scene3D; camera = scene.addChild(new Camera(0, 0.1, 100)) as Camera; camera.transform.rotate(new Vector3(10, 0, 0), true, false); camera.addComponent(CameraMoveScript); camera.clearFlag = BaseCamera...
来源: Laya_社区 发布时间: 20181017