大约有 308 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0050 秒)
...= Laya.loader.getRes(monkey1Path); let ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.graphics.drawTexture(monkey, 0, 0); var tl = new Laya.TimeLine(); tl.once('complete', this, function() { ape.x = 0; tl.reset(); tl.to(ape, { x: 100 }, 1000); tl.play(); }); tl.to(ape, { x: 100 }, 1000); tl....
来源: Laya_社区 发布时间: 20190927
...统计信息 // Laya.Stat.show(); //添加3D场景 this.scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; //添加照相机 this.camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))) as Laya.Camera; this.camera.transform.translate(new Laya.Vector3(0, 3, 3)); this.camera.transform.r...
来源: Laya_社区 发布时间: 20180307
... })(); function drawPentagram() { var canvas = new Sprite(); Laya.stage.addChild(canvas); var path = [336, 515, 338, 515, 341, 515, 349, 515, 369, 513, 391, 513, 408, 513, 419, 515, 441, 519, 459, 521, 471, 524, 480, 524, 485, 524, 491, 524, 497, 524, 508, 524, 519, 524, 529, 524, 540, 536, 54...
来源: Laya_社区 发布时间: 20181230
...t(fontName); } createText(font) { let txt = new Laya.Text(); Laya.stage.addChild(txt); txt.width = 250; txt.wordWrap = true; txt.text = "Do one thing at a time, and do well."; txt.font = font; // 文本的字体名称,以字符串形式表示 txt.leading = 5; // 垂直行间距 txt.pos(Laya.sta...
来源: Laya_社区 发布时间: 20190225
...= 99;//置最顶,这句话不写图层看不见 // info.init(); Laya.stage.addChild(info); } private onLoading(): void { var bj = new BeiJing(); Laya.stage.addChild(bj); } } new GameMain(); 这个是我的UI类,我在这个类里调用GameMain.aaa();提示TypeError: GameMain.aaa is not a functi...
来源: Laya_社区 发布时间: 20180507
...ask; this.img.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(this.img); 附件 : --> 2017-01-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 能否把你的测试...
来源: Laya_社区 发布时间: 20170106
...omething(); })(); function drawSomething() { sp = new Sprite(); Laya.stage.addChild(sp); //画多边形 sp.graphics.drawPoly(264, 166, [0, 0, 60, 0, 60,100, 50, 100, 50,80, 40, 80, 40, 90, 30,90, 30, 80,20, 80,20,90,0, 90], "#ffff00"); } })(); 绘制出来的多边形无法闭合 附件 : --> 2017-1...
来源: Laya_社区 发布时间: 20171219
... Laya.Scene3D(); //将场景加到舞台上 this.scene = scene; Laya.stage.addChild(scene); //添加方向光 var directionlight: Laya.DirectionLight = scene.getChildByName( "Directional Light" ) as Laya.DirectionLight; this.directionlight = directionlight; //加入子層人物腳色到舞台 var li...
来源: Laya_社区 发布时间: 20200917
...dom() * 500, Math.random() * 800, 50, "#666666", "#555555", 5); Laya.stage.addChild(Sprite) } 其他: Laya.init(Laya.Browser.width, Laya.Browser.height, Laya.WebGL);//Laya.WebGL Laya.stage.scaleMode = "showall"; Laya.stage.alignH = "center"; Laya.stage.alignV = "center"; Laya.stage.useHDRendering = ...
来源: Laya_社区 发布时间: 20171005
...howApe() { // 方法1:使用loadImage var ape = new Sprite(); Laya.stage.addChild(ape); ape.loadImage("../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("https://s2.d2scdn.com/2017/12/ ... ot%3B, Handler.create(this, function() { var t = Laya.loader.getRes("https://s2.d...
来源: Laya_社区 发布时间: 20171220