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

大约有 6,579 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0114 秒)

421. 挂载物体的3D变换问题 [ 85%]

...个圆柱体挂上角色后啥都没变化 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.localRo...

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

422. 遇到一个关于父节点和子节点点击的问题 [ 85%]

...节点和子节点点击的问题 这里是伪代码:   var bigSprite = new sprite();   var smalla = new sprite(); bigSprite.addchild(smalla); var smallb = new sprite(); bigSprite.addchild(smallb); var smallc = new sprite(); bigSprite.addchild(smallc);   意思是一个大的sprite:bigSprite...

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

423. SpotLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 85%]

...现象。 ```typescript //聚光灯 this.spotLight = this.scene.addChild(new Laya.SpotLight()); //设置聚光灯颜色 this.spotLight.color = new Laya.Vector3(1, 1, 0); //设置聚光灯位置 this.spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); //设置聚光灯方向 var mat = thi...

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

424. 设置滤镜(ActionScript-LayaAir基础篇(AS3)-位图) [ 85%]

...//A ]; //创建一个颜色滤镜对象,红色 var redFilter:ColorFilter = new ColorFilter(redMat); ``` 最后通过Spriter的filters属性将颜色滤镜效果叠加到位图中。下面我们创建一个Main.as入口类,并设置为默认应用程序(推荐用FlashBuilder),编写代码如...

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

425. 材质-PBRStandard材质 [ 85%]

...oveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyBox = new Laya.SkyBox(); camera.sky = skyBox; skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox1/skyCube.ltc"); //实例PBR材质 var mat = new Laya.PBRStandardMaterial(); //反射贴图 mat.albedoTextu...

来源: Laya_示例 发布时间: 20251130

426. graphics 问题 [ 85%]

...相关的链接 提交 3 个回复 cuixueying 赞同来自: var sp:Sprite=new Sprite(); sp.graphics.save(); var matrix:Matrix=new Matrix(); matrix.rotate(45); matrix.translate(100,100); sp.graphics.transform(matrix); sp.graphics.drawRect(0,0,200,100,"#FF0000"); sp.graphics.restore(); Laya.stage.addC...

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

427. 2.2.0使用2d粒子报错 [ 85%]

...   at ParticleShader.recreateResource (VM258 laya.core.js:2529)     at new Shader (VM258 laya.core.js:2492)     at new ParticleShader (VM262 laya.particle.js:272)     at new ParticleShaderValue (VM262 laya.particle.js:283)     at new ParticleTemplate2D (VM262 laya.particle.js:301)     at ...

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

428. 关于Laya.Quaternion.createFromAxisAngle旋转角度不正确的问题 [ 85%]

...     //定义两个向量,算出向量夹角         var dir1=new Laya.Vector3(0,1,1)         var dir2=new Laya.Vector3(1,0,0)         var angle=this.Angle(dir1,dir2)                  //向量法线         var normal=new Laya.Vector3();     ...

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

429. 性能测试-卡通人物2 [ 85%]

...artoon2/background.jpg", 0, 0, 1280, 900); this.createCharacters(); text = new Text(); text.zOrder = 10000; text.fontSize = 60; text.color = "#ff0000" Laya.stage.addChild(text); Laya.timer.frameLoop(1, this, this.gameLoop); } createCharacters() { let char; let charSkin; for (let i = 0; i = 0; i--) {...

来源: Laya2.0_示例 发布时间: 20251130

430. CameraMoveScript.as在哪儿下载群里的有错 [ 85%]

...ber; protected var lastMouseY:Number; protected var yawPitchRoll:Vector3 = new Vector3(); protected var resultRotation:Quaternion = new Quaternion(); protected var tempRotationZ:Quaternion = new Quaternion(); protected var tempRotationX:Quaternion = new Quaternion(); protected var tempRotationY:Quat...

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