大约有 2,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0056 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...改却全部都生效了 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
...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
...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
...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
... 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
...无法获取高度 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
...自: 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
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
...到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
...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