大约有 1,616 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0050 秒)
Laya_社区(986) Laya2.0_文档(192) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(61) Laya2.0_api(57) laya_api(53) Laya3.0_文档(28)
...考官方案例。 https://layaair.ldc.layabox.co ... World Laya.stage.addChild(MaxUi.GameUi); MaxUi.GameUi.addChild(tiledMap); 1、原图按照1.5倍来开发,所有逻辑坐在MaxUi.GameUi 上。 2、手势缩放时,MaxUi.GameUi.scale(2,2) 放大 或者 MaxUi.GameUi.scale(1,1) ...
来源: Laya_社区 发布时间: 20180502
... 1 个回复 李伟 赞同来自: var Wall_TL = new Sprite(); Laya.stage.addChild(Wall_TL); Wall_TL.graphics.drawRect(0, 0, 400, 32, "#ffff00"); Wall_TL.pivot(200, 16); var Collision_Wall_TL:any = Matter.Bodies.rectangle(200, 400, 400, 32, { layaSprite:Wall_TL,isStatic: true }) Matter.World.add...
来源: Laya_社区 发布时间: 20180529
...is.bullet); flyer.pos(Laya.stage.mouseX, Laya.stage.mouseY); this._gameBox.addChild(flyer); this._chains.points="35,35,80,80"; //****新增代码*****,需增加private _chain; } /**开始游戏,通过激活本脚本方式开始游戏*/ startGame(): void { if (!this._started) { this._start...
来源: Laya_社区 发布时间: 20181130
...is.bullet); flyer.pos(Laya.stage.mouseX, Laya.stage.mouseY); this._gameBox.addChild(flyer); this._chains.points="118,99,158,70,218,99,258,70,318,99,358,70,418,99,458,70,518,99,558,70"; } /**开始游戏,通过激活本脚本方式开始游戏*/ startGame(): void { if (!this._started) { t...
来源: Laya_社区 发布时间: 20181128
...载场景文件bug . 直接 Scene.load("res/3d/scene/Main.ls"); Laya.stage.addChild(scene); 加载并创建加的场景显示和u3d里展示的一样, 用提前加载好资源在场景显示异常 2018-08-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...
来源: Laya_社区 发布时间: 20180805
...onventional/scene.ls',Laya.Handler.create(this,function(scene){ Laya.stage.addChild(scene); })); ``` (图2)
来源: Laya2.0_文档 发布时间: 20210715
...onventional/scene.ls',Laya.Handler.create(this,function(scene){ Laya.stage.addChild(scene); })); ``` (图2)
来源: Laya2.0_文档 发布时间: 20210715
...使用问题 var p:HTMLIframeElement = new HTMLIframeElement(); Laya.stage.addChild(p); p.href = "./HTMLPage1.html"; 代码如上, 报错如附件。 请问, 在使用p:HTMLIframeElement 时, 要加载的.html文件 , 有什么需要注意的地方么? 现在看来,连<...
来源: Laya_社区 发布时间: 20180129
...= new Animation(); this.aniCloud.loadAnimation("AniCloud.ani"); Laya.stage.addChild(this.aniCloud); }报错 Uncaught ReferenceError: Animation is not defined 2017-10-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回...
来源: Laya_社区 发布时间: 20171026
...来自: var test = new Laya.TextInput(); test.text = "测试"; Laya.stage.addChild(test); console.log(test.text);//输出的就是输入框的值 2017-11-02 0 2 分享 微博 QZONE 微信 zhangliyang 赞同来自: 我觉得你看下官网提供的API就不会有这种问题了 2017-11-03 0 0 分享 ...
来源: Laya_社区 发布时间: 20171102