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

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

131. Sprite3D添加组件或脚本(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 83%]

...function onComplete():void { //记载场景 var scene:Scene3D = Laya.stage.addChild(new Scene3D()) as Scene3D; //加载相机 var camera:Camera = scene.addChild(new Camera(0, 0.1, 100)) as Camera; camera.transform.translate(new Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Vector3(-15, 0, 0), t...

来源: Laya2.0_文档 发布时间: 20210714

132. 续飞机大战 [ 83%]

...,852); Laya.stage.bgColor="#EEFFCC"; var bg = new BackGround(); Laya.stage.addChild(bg); } return Game; }()); var gameInstance = new Game();BackGround.jsvar BackGround = (function (_super) { function BackGround() { BackGround.__super.call(this); //创建背景1 this.bg1 = new Laya.Sprite(); //加载...

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

133. Bitmap引用计数的问题 [ 83%]

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

134. localRotationEulerY旋转位置错误 [ 83%]

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

135. 材质的功能介绍(ActionScript-3D基础(AS3)-LayaAir3D之Material材质) [ 83%]

...的材质 ```typescript //初始化3D场景 var scene:Scene3D = Laya.stage.addChild(Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")) as Scene3D; //从场景获取球型精灵 sphere = scene.getChildByName("Sphere") as MeshSprite3D; //获取球型精灵自带的BlinnPho...

来源: Laya2.0_文档 发布时间: 20210715

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

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

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

137. 材质的功能介绍(TypeScript-3D基础(TS)-LayaAir3D之Material材质) [ 83%]

...型上的材质 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")) as Laya.Scene3D; //从场景获取球型精灵 this.sphere = scene.getChildByName("Sphere") as Laya.MeshSprite3D; //获取球型精...

来源: Laya2.0_文档 发布时间: 20210715

138. 没有人尝试使用3d物理引擎么 [ 83%]

...启统计信息 Stat.show(); //添加3D场景 var scene:Scene=Laya.stage.addChild(new Scene()) as Scene; //添加照相机 var camera:Camera=(scene.addChild(new Camera(0, 0.1, 100))) as Camera; camera.transform.translate(new Vector3(0, 3, 6)); camera.transform.rotate(new Vector3(-15, 0, 0), true, fa...

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

139. 关于graphics镂空的问题https://ask.layabox.com/question/139 [ 82%]

...toSize = true; redBox.graphics.drawRect(0,0,100,100,'#ff0000'); Laya.stage.addChild(redBox); redBox.on("click",this,function(){ trace("click redbox"); }); redBox.on("mouseover",this,function(){ redBox.graphics.clear(); redBox.graphics.drawRect(0,0,100,100,'#00ff00'); }); redBox.on("mouseout",this,fu...

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

140. webgl模式下对Panel组件旋转时Panel子对象显示错误的BUG! [ 82%]

...anelRotationTest(Laya.Sprite); testSpriteRotation.pos(300,260); Laya.stage.addChild(testSpriteRotation); var testPanelRotation:PanelRotationTest = new PanelRotationTest(Laya.Panel); testPanelRotation.pos(1000,260); Laya.stage.addChild(testPanelRotation); Laya.Tween.to(testPanelRotation,{rotation:720...

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