大约有 2,792 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0095 秒)
Laya_社区(2262) Laya2.0_文档(123) Laya3.0_api(106) Laya_示例(84) Laya2.0_api(57) Laya2.0_示例(55) laya_api(53) Laya3.0_文档(52)
...tyPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale LayaAirIDE下如何使用mask? 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 求高人分享使用protobuff框架...
来源: Laya_社区 发布时间: 20170120
...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
...已经被锁定, 无法添加新回复 发起人 XiaozeRain 相关问题 sprite旋转以后,但是原来碰撞检测rect没有旋转 请问有没有方法能够获取“鼠标是否处于按下状态”? Dialog:屏蔽点击Dialog之外的区域关闭弹框 iphoneX环境下新手引导的抠图...
来源: Laya_社区 发布时间: 20180329
...图片可以 ,下面附上背景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
...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