大约有 2,313 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0071 秒)
Laya_社区(1516) Laya2.0_文档(259) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(80) Laya3.0_文档(75) Laya2.0_api(74) laya_api(70)
...omplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Browser.width / 2, Browser.height / 2 + 100); this.skeleton.scale(0.5, 0.5); this.skeleton.on(Event.STOPPED, this, this.play) this.play(); } private onError(): void{ console.log("par...
来源: Laya2.0_文档 发布时间: 20210715
...se.linearOut,Laya.Handler.create(this,this.removeball,[ball])); Laya.stage.addChild( ball ); } } public removeball( ball:Laya.Sprite ){ Laya.stage.removeChild(ball); // console.log("rmove ball") } public getObj():Laya.Sprite { for( let i:number = 0 ; i < this.balls.length;i++ ){ if( !this.balls[i...
来源: Laya_社区 发布时间: 20180226
...lor = "#ffffff"; var Img = new Laya.Sprite(); //添加到舞台 Laya.stage.addChild(Img); Img.loadImage("res/img/monkey1.png",200); ``` 运行效果如图1所示  (图1) ### 2、刷新显示对象节点树 默认状态下,显示对象节点树中只有`DebugInfoLayer`节点,而...
来源: Laya2.0_文档 发布时间: 20210715
...owall"; Laya.stage.bgColor = "#ffffff"; this.sp = new Sprite(); Laya.stage.addChild(this.sp); this.sp.graphics.drawPath(100, 100, [["moveTo", 100, 0], ["arcTo", 200, 0, 200, 100, 100], ["arcTo", 200, 200, 100, 200, 100], ["arcTo", 0, 200, 0, 100, 100], ["arcTo", 0, 0, 100, 0, 100]], {fillStyle: "#00...
来源: Laya_社区 发布时间: 20170425
...ff"; var Img:Laya.Sprite = new Laya.Sprite(); //添加到舞台 Laya.stage.addChild(Img); Img.loadImage("res/img/monkey1.png",200); } } new GameMain(); ``` 运行效果如图1所示  (图1) ### 2、刷新显示对象节点树 默认状态下,显示对象节点树中只有`DebugIn...
来源: Laya2.0_文档 发布时间: 20210715
...his.bt=new bitmapimg(url); this.sp.addChild(this.bt) }else{ this.bt.url=url; } } this.flag=true; ...
来源: Laya_社区 发布时间: 20181201
...text.align = "center"; this.text.y = 20; this.text.centerX = 0; this.owner.addChild(this.text); } /** * 发起HTTP连接请求 */ private connect(): void { //创建HttpRequest对象 this.hr = new HttpRequest(); //请求响应的进度改变时触发 this.hr.on(Event.PROGRESS, this, this.onHttpReques...
来源: Laya3.0_文档 发布时间: 20251010
...(); test.font=this.mFontName; test.text = "这是一个文本"; Laya.stage.addChild(test); } 2017-08-30 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 Lyr1 相关问题 写个捕鱼游戏练练手 解决跨域...
来源: Laya_社区 发布时间: 20170829
...自定义材质。 ```typescript //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1))); //为了更好的表现该自定义shader我们去掉模型旋转,同时给摄影机添加了移动脚本 camera.addComponent(CameraMoveScript); //创建一个...
来源: Laya2.0_文档 发布时间: 20210715
... content.y = 0; addChild(content); content.play(); setInterval(function(){content.nextFrame()},50) } } } 附件 : --> 2017-03-17 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20170317