大约有 1,616 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0094 秒)
Laya_社区(986) Laya2.0_文档(192) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(61) Laya2.0_api(57) laya_api(53) Laya3.0_文档(28)
....screenMode = Laya.Stage.SCREEN_NONE; initShader(); var scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/terrain/terrain.ls")); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-38, 180, 0), false, false); camera.transform.tr...
来源: Laya_示例 发布时间: 20251209
...omplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Laya.Browser.width / 2, Laya.Browser.height / 2 + 100); this.skeleton.scale(0.5, 0.5); this.skeleton.on(Laya.Event.STOPPED, this, this.play) this.play(); } private onError(): void{ c...
来源: Laya2.0_文档 发布时间: 20210715
...nction initMatter():void { var gameWorld:Sprite = new Sprite(); Laya.stage.addChild(gameWorld); engine = Matter.Engine.create({enableSleeping:true}); Matter.Engine.run(engine); var render = LayaRender.create({engine:engine,container:gameWorld,width:stageWidth,height:stageHeight,options:{wireframes:t...
来源: Laya_社区 发布时间: 20171214
...体txt.font = this.mFontName;txt.fontSize = 50;txt.leading = 5;Laya.stage.addChild(txt);} 2018-09-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 hj 赞同来自: 直接写在main.js里也行,自己建一个...
来源: Laya_社区 发布时间: 20180919
...nherited Public Methods Show Inherited Public Methods MethodDefined By addChild(child:Node):Node[override] 添加子节点。 LayoutBox addChildAt(child:Node, index:int):Node[override] 添加子节点到指定的索引位置。 LayoutBox addChildren(... args):void 批量增加子节点 Node...
来源: laya_api 发布时间: 20170929
...; mc.load("output/AAA.swf"); mc.on(Event.LOADED,this,onLoaded); Laya.stage.addChild(mc); } private function onLoaded():void { mc.addLabel("label01",19); mc.addLabel("label02",39); mc.addLabel("label03",59); mc.on(Event.LABEL,this,onLabel);//运行到对应的帧数,会触发对应的标签 } priva...
来源: Laya_社区 发布时间: 20170705
...只有一个stage实例,此实例可以通过Laya.stage访问。Stage addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node clearTimer(caller:*, method:Functio...
来源: laya_api 发布时间: 20170929
...race( Laya.loader.getRes(url) ); } private function hh():void { Laya.stage.addChild(new Image("MORNUI_Z_Gongneng/clip_xue_quan.png")); Laya.timer.once(1000,1,ddd); } private function ddd():void { trace("aaa1",Laya.loader.getRes(url)); Laya.stage.removeChildren(); Laya.loader.clearRes(url); trace("aa...
来源: Laya_社区 发布时间: 20171206
... swordman.play(0, true); Laya.stage.addChild(swordman); swordman.pos(width / 2, height / 2); Laya.timer.frameOnce(100, this, unload); } private function unload() : void { ...
来源: Laya_社区 发布时间: 20160902
...tempStringArray[i] + ".png"; img.loadImage(tempImageName, i * 30, 0); this.addChild(img); var poker = new Poker(img,tempImageName); poker.show(); // Laya.stage.addChild(img); } } return Panel1; }(ui.Panel1UI));[/i] 这是扑克类[i]/* * 补克类 */ var Poker = (function () { function Poker(img,tem...
来源: Laya_社区 发布时间: 20180130