大约有 2,783 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0073 秒)
Laya_社区(2254) Laya2.0_文档(123) Laya3.0_api(106) Laya_示例(84) Laya2.0_api(57) Laya2.0_示例(55) laya_api(53) Laya3.0_文档(51)
...图片可以 ,下面附上背景demo //创建背景1 this.bg1 = new Laya.Sprite(); //加载并显示背景图 this.bg1.loadImage("ui/BG/play-bg.png", 0, 0, 720, 5120); //把背景图显示在容器内 this.addChild(this.bg1); //创建背景2 this.bg2 = new Laya.Sprite(); //加载并显示背景图...
来源: Laya_社区 发布时间: 20181105
...ition = new Laya.Vector3(0,4,10); //载入并显示3D建筑 var map = Laya.Sprite3D.load("LayaScene_test/test.lh"); scene.addChild(map); //map.transform.localPosition = new Laya.Vector3(0,-4,-10); //控制摄像机 camera.addComponent(CameraMoveScript); 2017-05-24 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20170524
...Laya.Handler.create(this, this.onLoaded)); function onLoaded(): void { var sprite = new Laya.Sprite(); sprite.loadImage('comp/bg.png'); Laya.stage.addChild(sprite); } 上面这段代码如果把Laya.stage.size这行的注释去掉,运行时不能正常显示图片。请问下对stage是否有大...
来源: Laya_社区 发布时间: 20170803
...super){ function Background(){ Background.super(this); this.bg1 = new Laya.Sprite(); this.bg1.loadImage("res/background.png"); this.addChild(this.bg1); } Laya.class(Background,"Background",_super); window.Background=Background; return Background; })(Laya.Sprite); 2017-04-20 0 2 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20170420
... 相关问题 使用钢体设置防穿后仍有几率会穿透 如何设置Sprite的宽高和点击区域? 关于同为object层,层级设置无效的问题 摄像机跟随刚体移动,刚体出现抖动。 Laya3D里的material可以设置flat shading么 将list里的scrollBar设置mouseWheelE...
来源: Laya_社区 发布时间: 20170809
...sform: Transform3D; onStart(): void { this.transform = (this.owner as Laya.Sprite3D).transform; this.CurrentAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEuler.y, 0); this.targetAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEuler.y, 0); t...
来源: Laya_社区 发布时间: 20170714
...ene2D 的 RuntimeScript 中用 this.scene3D 去访问到 UI3D, 再用 ui3d.sprite 获取 prefab 的根节点. export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { let sprite3d: Laya.Sprite3D = this.scene3D.getChildByName("m_Sprite3D"); let ui3d: Laya.UI3D = sprite3d.getCompone...
来源: Laya_社区 发布时间: 20251020
...nction () { var t = Laya.loader.getRes(skin); var _sprite = new Sprite(); _sprite.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(_sprite); }); 但是出来的效果是这样,我本意是想 宽度不变 高度可以拉伸 问题1 怎么才能宽...
来源: Laya_社区 发布时间: 20170222
...定不触发bug var Event = Laya.Event; var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL;...
来源: Laya_社区 发布时间: 20161128
...过这个拖尾的同学吗?这个应该怎样使用呢? new Laya.TrailSprite3D() new Laya.TrailMaterial() 2018-07-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 这个类是给unit...
来源: Laya_社区 发布时间: 20180709