大约有 169 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0040 秒)
...if(!this._body_ani) // { // this._body_ani = new Laya.Animation(); // this.addChild(this._body_ani); // } // this._body_ani.play(0, true, doll_item.animation_name); this._box = box; this._fly_site.w = this._box._area.w - 20; this._box.graphics.drawLine( 0, this._fly_site.h, this._box._area.w, th...
来源: Laya_社区 发布时间: 20180515
...l(); boxRender.sharedMaterial = boxMaterial; // 添加到场景 this.scene.addChild(box); // 设置位置 box.transform.position = new Laya.Vector3(2.0, 0.25, 0.6); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); /* 球体 */ let sphere = new Laya.Sprite3D; let sphereMesh = sphere.ad...
来源: Laya3.0_文档 发布时间: 20251010
...CREEN_NONE; Laya.Stat.show(); 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.translate(new Laya...
来源: Laya_社区 发布时间: 20210103
...acter() { const Sprite = Laya.Sprite; character = new Sprite(); Laya.stage.addChild(character); character.loadImage("res/cartoonCharacters/1.png"); character.pos(100, 50); } createEaseFunctionList() { const List = Laya.List, Handler = Laya.Handler; let easeFunctionsList = new List(); easeFunctionsLi...
来源: Laya2.0_示例 发布时间: 20251130
...t(0, 0, 30, 30, null, "#e6e4ef", 1); box.x = i * 30; box.y = j * 30; boxSp.addChild(box); } } boxSp.cacheAs = "bitmap"; this.addChild(boxSp); } boxSp.cacheAs = "bitmap"; 如果去掉这句话可以显示 是内部设置了?? 2016-10-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20161008
物体碰撞问题 var box_1 : Laya.MeshSprite3D = this.scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D; box_1.transform.translate(new Laya.Vector3(0, 5, 0)); var boxRigidBody_1 : Laya.Rigidbody3D = box_1.addComponent(Laya.Rigidbody3D); var boxShape...
来源: Laya_社区 发布时间: 20190602
...ntional/SceneMonkey.ls",Laya.Handler.create(this,function(res){ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, funct...
来源: Laya2.0_文档 发布时间: 20210715
...ntional/SceneMonkey.ls",Laya.Handler.create(this,function(res){ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, funct...
来源: Laya2.0_文档 发布时间: 20210714
...reshLoading.bottom = 10; this.refreshLoading.visible = false; this.baseBox.addChild(this.refreshLoading); // 加载动画 this.loadingAni = new Animation(); this.loadingAni.loadAnimation("res/ui/refreshList/ani/Refresh.ani"); this.loadingAni.pos(27, 36); this.loadingAni.autoPlay = true; this.refresh...
来源: Laya2.0_示例 发布时间: 20251130
...at.show(); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 10000))); camera.transform.translate(new Laya.Vector3(0, 5, 5)); camera.transf...
来源: Laya_社区 发布时间: 20180427