• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 2,783 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0073 秒)

941. 微信小游戏图片加载不出来 [ 68%]

...图片可以 ,下面附上背景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

942. u3d 插件导出 简单场景,用最新引擎无法加载成功 [ 68%]

...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

943. 关于stage的size问题 [ 68%]

...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

944. "Background is not defined"怎么会没定义呢???求救 [ 68%]

...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

945. 摄像机背景与天空盒设置 [ 68%]

... 相关问题 使用钢体设置防穿后仍有几率会穿透 如何设置Sprite的宽高和点击区域? 关于同为object层,层级设置无效的问题 摄像机跟随刚体移动,刚体出现抖动。 Laya3D里的material可以设置flat shading么 将list里的scrollBar设置mouseWheelE...

来源: Laya_社区 发布时间: 20170809

946. 3D中摄像机绕物体旋转该如何实现? [ 68%]

...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

947. [LayaAir3]如何在3D场景添加文字呢 [ 68%]

...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

948. 自适应问题 [ 68%]

...nction () {         var t = Laya.loader.getRes(skin);         var _sprite = new Sprite();         _sprite.graphics.drawTexture(t, 0, 0);         Laya.stage.addChild(_sprite); }); 但是出来的效果是这样,我本意是想 宽度不变 高度可以拉伸 问题1 怎么才能宽...

来源: Laya_社区 发布时间: 20170222

949. 事件绑定不触发bug [ 68%]

...定不触发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

950. LayaAir里面的拖尾如何使用? [ 68%]

...过这个拖尾的同学吗?这个应该怎样使用呢? new Laya.TrailSprite3D() new Laya.TrailMaterial() 2018-07-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 这个类是给unit...

来源: Laya_社区 发布时间: 20180709