大约有 856 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0063 秒)
Laya_社区(561) Laya2.0_文档(110) Laya3.0_api(79) Laya3.0_文档(72) Laya_示例(31) Laya2.0_api(2) laya_api(1)
... 2.2.0beta4 发布微信小游戏,安卓设备加载场景黑屏 laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 laya2.0加载3d场景报错Uncaught TypeError: Cannot read property 'btCollisionObject' of undefined 3d场景单材质单模型Cu...
来源: Laya_社区 发布时间: 20181012
射线一直无法获取物体 添加物体: var qb_pet = scene.addChild(Laya.Sprite3D.load("./test.lh")); qb_pet.once(Laya.Event.HIERARCHY_LOADED, this, function(){ qb_pet.addComponent(Laya.SphereCollider); }); 设置射线: Laya.timer.frameLoop(1, null,...
来源: Laya_社区 发布时间: 20170915
...*949 • 2018-07-26 11:23 create是有问题吗,改成sprite3d.load或者Scene.load的话,项目改动会比较大 188*****949 • 2018-07-26 11:26 再说sprite3d.load调用的不是create? Laya_Aaron • 2018-07-26 11:27 Laya.loader.create(url, null, null, Sprite3D); 188*****949 • 2018-07-2...
来源: Laya_社区 发布时间: 20180725
...滚屏,使得新添加的元素始终保持在最底部显示? laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 微信小程序—未找到入口 app.json 文件,或者文件读取失败,请检查后重新编译。 动画混合无效(...
来源: Laya_社区 发布时间: 20171110
...建了一个平面。如图1所示。 ```typescript //平面 var plane = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10))); //新建材质 var planeMat = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(thi...
来源: Laya2.0_文档 发布时间: 20210714
...ors constructor Properties _cacheDepth _cacheDepthTexture _extra _forward _scene _up _url clearFlag enableRender name tag useOcclusionCulling RENDERINGTYPE_DEFERREDLIGHTING RENDERINGTYPE_FORWARDRENDERING WORLDINVERTFRONT _contextScissorPortCatch Accessors active activeInHierarchy aspectRatio boundFr...
来源: Laya3.0_api 发布时间: 20231115
...建一个球体模型并添加到舞台上 var sphere:Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createSphere(1))) as Laya.MeshSprite3D; //新建一个球形的碰撞盒 var sphereShape:Laya.SphereColliderShape = new Laya.SphereColliderShape(1); //给球添加刚体 var s...
来源: Laya2.0_文档 发布时间: 20210714
...ProgressBar Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize changeHandler hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bar bg blendMode bottom cacheAs centerX centerY...
来源: Laya3.0_api 发布时间: 20231115
...下的两个节点) //添加自定义模型 var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMater...
来源: Laya_社区 发布时间: 20190717
...是不是哪里没用对?并不能替换是为什么?? laya2.0调用scene.gc方法,再次加载同一份资源时候,会导致gpu内存不断增加! 关于动画ani文件,编辑ani文件需不需要使用loadanimation方法加载?在最开始的加载吗?还有 我只加载动画...
来源: Laya_社区 发布时间: 20170926