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

大约有 2,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0056 秒)

1171. lh文件内meshSprite添加阴影属性无效 [ 70%]

...改却全部都生效了   var mesh:Laya.MeshSprite3D; for(var i =0;i<this.sprite3D._childs.length;i++){ mesh = this.sprite3D.getChildAt(i) as Laya.MeshSprite3D; mesh.meshRender.material = material; mesh.meshRender.receiveShadow = true; mesh.meshRender.castShadow = true; console.log(mesh.name) }...

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

1172. 请问2.0射线到底如何使用呢? [ 70%]

...sicsSimulation这个类,但下面这么用一直没有东西,求指点 this.mousePos=new Vector2(MouseManager.instance.mouseX, MouseManager.instance.mouseY); camera.viewportPointToRay(this.mousePos,ray); this.ps.rayCast(ray,this.rayCastHit,500, 0); 2018-12-20 添加评论 免费帖 --> 分享 ...

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

1173. 粒子-粒子演示2 [ 70%]

...r = "#232628"; Stat.show(); Laya.loader.load(partPath, Laya.Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); } onAssetsLoaded(settings) { // 当load数组的时候,回调函数传入的参数不再是资源,可以通过以下方法获取资源 // let settings = Laya.loader.getRes(p...

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

1174. 粒子-粒子演示3 [ 70%]

...r = "#232628"; Stat.show(); Laya.loader.load(partPath, Laya.Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); } onAssetsLoaded(settings) { // 当load数组的时候,回调函数传入的参数不再是资源,可以通过以下方法获取资源 // let settings = Laya.loader.getRes(p...

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

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

...        var dir2=new Laya.Vector3(1,0,0)         var angle=this.Angle(dir1,dir2)                  //向量法线         var normal=new Laya.Vector3();         Laya.Vector3.cross(dir1,dir2,normal)          //围绕法线,把其中一个向量...

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

1176. Animation创建时无法获取高度 [ 69%]

...无法获取高度 var roleAni = new Laya.Animation(); roleAni.loadImages( this.aniUrls( v1, v2, tip, frames ) ).play(); roleAni.pos(x,y); this.root.addChild( roleAni ); roleAni.pivotY = roleAni.getBounds().height; console.log("---> ", roleAni.getBounds() ); 打印为 ---> Rectangle {x: 0, y:...

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

1177. "Background is not defined"怎么会没定义呢???求救 [ 69%]

...自: Game.jsvar Game = (function(){ (function Game(){ Laya.init(600,800); this.bg = new window.Background(); Laya.stage.addChild(this.bg); })(); })();Background.js var Background = (function(_super){ function Background(){ Background.super(this); this.bg1 = new Laya.Sprite(); this.bg1.loadImage("res...

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

1178. loadui问题 [ 69%]

UI相关问题 loadui问题 this.loadUI("test/TestPage") 请问下是这样加载分离ui的吗?为什么我看 __proto.loadUI=function(path){ var uiView=View.uiMap[path]; uiView && this.createView(uiView); } 这里面uiMap都没有地方会注册. 还有我按F12后this直接被去掉了,...

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

1179. 2.0 beta3 物理 DestroyJoint 报错 [ 69%]

...到box2d.b2World.prototype.DestroyJoint 在下面两行代码之前添加this.m_jointCount判断 box2d.ENABLE_ASSERTS && box2d.b2Assert(0 < this.m_jointCount); --this.m_jointCount;   完整代码如下: box2d.b2World.prototype.DestroyJoint = function(a) {     box2d.ENABLE_ASSERTS &am...

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

1180. Unity导出.lm文件,laya读取并显示,但是改变不了position [ 69%]

...es/LayaScene_Alien/Assets/FBXs_Stacy/EnvArctic_alien-EnvArctic_alien.lm"); this.meshSprite3D = new Laya.MeshSprite3D(tempmodels); scene.addChild(this.meshSprite3D); this.meshSprite3D.transform.position.x = 0; this.meshSprite3D.transform.position.y = 0; this.meshSprite3D.transform.position.z = 10;  ...

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