大约有 1,326 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0090 秒)
...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
...,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
...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
... 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
...的材质 ```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
...官方示例脚本,加载一个从U3D导出的2D粒子特效Laya.stage.addChild(Laya.Scene.load(url)) 但是粒子不显示。想问到底这个步骤怎么搞?急急急!!!!我把导出的资源上传了。 附件 : --> LayaScene_1.rar 2018-03-20 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20180320
...型上的材质 ```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
...启统计信息 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
...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
...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