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

大约有 1,533 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0064 秒)

151. 使用U3D导出粒子特效不显示 [ 82%]

...官方示例脚本,加载一个从U3D导出的2D粒子特效Laya.stage.addChild(Laya.Scene.load(url)) 但是粒子不显示。想问到底这个步骤怎么搞?急急急!!!!我把导出的资源上传了。 附件 : --> LayaScene_1.rar 2018-03-20 添加评论 免费帖 --> 分享 微...

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

152. 分享:Panel下动态修改子容器宽高并刷新显示! [ 82%]

...置panel的垂直滚动条,方便看出panel的滚动变化 Laya.stage.addChild(panel); var sp:Sprite=new Sprite();//panel的子容器sp sp.graphics.drawRect(0,0,500,1000,"#FF0000"); sp.size(500,1000); panel.addChild(sp); var btnAdd:Button=new Button();//点击按钮,动态添加sp的子对象...

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

153. 求助高手请进,关于场景导入的问题~ [ 82%]

...:Scene = Laya.loader.getRes("LayaScene_01/loveScene.ls");     Laya.stage.addChild(scene); }   我现在的问题是,我创建一个继承Scene的类,在这个类里边我怎么去给自己设置场景资源? var scene1:GameScene = new GameScene(); Laya.stage.addChild(scene1);   public clas...

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

154. iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 [ 82%]

...r = new Sprite(); this.guideContainer.cacheAs = "bitmap"; Utils.GuideLayer.addChild(this.guideContainer); this.guideContainer.on(Laya.Event.CLICK, this, this.nextStep); this.mouseEnabled = false; var maskArea: Laya.Sprite = new Laya.Sprite(); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, La...

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

155. rigidBody.applyForce 对刚体应用力,物体没有移动 [ 82%]

...tmpVector = new Laya.Vector3(0, 0, 0);         this.scene = Laya.stage.addChild(new Laya.Scene3D());         //初始化照相机         let camera = this.scene.addChild(new Laya.Camera(0, 0.1, 100));         camera.transform.translate(new Laya.Vector3(0, 6, 9.5));         camer...

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

156. localRotationEulerY旋转位置错误 [ 82%]

...      this.arr = [];         this.newScene = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D;          //初始化照相机         var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera;         camera.transform...

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

157. Bitmap引用计数的问题 [ 82%]

...uot;res/test.png"; image2.skin = "res/test.png"; Laya.stage.addChild(image1); Laya.stage.addChild(image2); 加载完了后再执行一次 Laya.loader.clearRes("res/test.png"); 这时候两张图片的纹理数据都被清除了,引用计数没有用啊,不应该是在执...

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

158. 分享一个自己做的游戏公告功能,跑马灯效果 [ 82%]

...left" this.html.style.color = "#fff" this.html.innerHTML = "" this.hornBox.addChild(this.html) this.addChild(this.hornBox) } /** 滚动动画 */ private _animate(e: Event): void { const _w = this.html.width const _x = this.html.x if (_x < -_w) { this.stop(true) } else { this.html.x -= 2 } } /** ...

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

159. 3D灯光阴影无效 [ 82%]

3D灯光阴影无效 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.ambientColor = new Vector3(0.7, 0.6, 0.6); directionLight.specularColor = new Vector3(1.0, 1.0, 0.9); directionLight.diffuseColor = new Vector3(1, 1, 1); directionLight.tr...

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

160. 多重遮罩显示异常 [ 82%]

...bg = new Laya.Sprite(); bg.graphics.drawRect(0, 0, 500, 500, '#aaa'); this.addChild(bg); this.panel = new Laya.Panel(); this.panel.width = 500; this.panel.height = 500; this.panel.vScrollBarSkin = ''; this.panel.hScrollBarSkin = ''; this.addChild(this.panel); let line = new Laya.Sprite(); line.size(...

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