大约有 15 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0028 秒)
3D动画无法播放 var shared:MeshSprite3D = scene.addChild(new MeshSprite3D(Mesh.load("http://192.168.1.41/mod/shared-Sphere001.lm"))) as MeshSprite3D; shared.transform.localScale = new Vector3(0.3, 0.3, 0.3); //获取角色动画组件 va...
来源: Laya_社区 发布时间: 20180118
... //平面 var plane = this.newScene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10))) as Laya.MeshSprite3D; var planeMat = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/grass.png", Laya.Handler.cre...
来源: Laya_社区 发布时间: 20201120
Laya.MeshSprite3D 可否对其中的renderElements 执行 transform 就是说, 比如一个网格中有5个材质的话, 渲染器就会产生5个的渲染元素, 如果我想对其中的一个材质对应的面片, 进行单独旋转等操作, 可不可以对他的渲染进行控制 或 用其它...
来源: Laya_社区 发布时间: 20180212
...e:string]:AnimationTemplet} = {}; private meshes : Array<MeshSprite3D> = []; private OnHierarchyLoaded() { for (let v of this._childs[0]._childs) { let mesh = v as MeshSprite3D; m...
来源: Laya_社区 发布时间: 20170608
...本 ani动画,序列帧动画最后一帧和第一帧衔接出现卡顿 MeshSprite3D对象更改Mesh 在编辑好的动画中某一帧的时候播放一段声效 急急急,如何设置按钮点击加载ani 设置sortingFudge没有效果,如何更改渲染层级? 更改资源路径的URL butt...
来源: Laya_社区 发布时间: 20171024
...中降落的球 //var random: number = Math.random()*24-7; let ball: Laya.MeshSprite3D = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(1)); this.scene1.addChild(ball); ball.transform.position = new Laya.Vector3((Math.random() - 0.5) * 2, 10, 17); //添加刚体 ball.addComponent(Laya.P...
来源: Laya_社区 发布时间: 20190506
... static _instance:any; public m_ObjectPoolDic:{[key:number]:QueueT<Laya.MeshSprite3D>}={} constructor() { } static getInstance() { return this._instance || (this._instance = new PoolManager()) } //初始化 //加载到内存中创建出来之后添加到这里面 public InitPool(key:number,M...
来源: Laya_社区 发布时间: 20191206
Sprite3D 不旋转 我在场景里面加载了一个meshsprite3d和一个自己从unity里面导出的sprite3d,都用 Laya.timer.loop(10,null,function():void{ layaMonkey.transform.rotate(vect,true,false) }) 让他自...
来源: Laya_社区 发布时间: 20180302
...his.scene.CurrentCamera = this.camera; //男角色 this.roleMan = new Laya.MeshSprite3D(Laya.Mesh.load("3d/man/CunMinNan-cunminnan.lm")); this.roleMan.transform.localScale = new Laya.Vector3(0.01, 0.01, 0.01); this.roleMan.transform.localPostion = new Laya.Vertor3(0,-0.5,-3); this.scene.addChild(thi...
来源: Laya_社区 发布时间: 20180731
... var cylinderMesh:CylinderMesh=new CylinderMesh(0.05,2,8); var cylinder3D:MeshSprite3D=new MeshSprite3D(cylinderMesh); cylinder3D.transform.translate(new Vector3(3,0,0),true); cylinder3D.transform.localScale = new Vector3(2,2,2); cylinder3D.transform.localRotationEuler = new Vector3(90,90,90); role....
来源: Laya_社区 发布时间: 20170904