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

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

1401. 有些模型load之后,MeshSprite3D 的共享材质个数为0,无法对材质进行操作 [ 46%]

...个数为0,无法对材质进行操作 _disObj3d = Sprite3D.load("../../res/models/cike.lh"); _scene3d.addChild(_disObj3d); _disObj3d.once(Event.HIERARCHY_LOADED, null, function(sender:Sprite3D):void {       var ms:MeshSprite3D = _disObj3d.getChildByName("mod_CiKeZhuangBei_Body_03") as MeshSp...

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

1402. 多摄像机窗口的使用(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 46%]

...ne.addChild(new Laya.DirectionLight()); //加载模型 Laya.Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(null, function(sp){ //将模型加到场景上 var layaMonkey = scene.addChild(sp); })) ``` 编译运行上述代码,运行效果如图6。开发者们...

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

1403. BlinnPhong材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 46%]

...hongMaterial = new BlinnPhongMaterial(); //漫反射贴图 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置材质纹理 material.albedoTexture = texture; })); //material.albedoTexture earth2.meshRenderer.material = material; ``` ![](...

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

1404. laya.gltf.glTFResource_API3.0 [ 46%]

...rotected All Inherited Externals Only exported Menu Globals "laya/gltf/glTFResource" glTFResource Class glTFResource Hierarchy Prefab glTFResource Index Constructors constructor Properties destoryedImmediately lock name url uuid version DEBUG Accessors cpuMemory deps destroyed gpuMemory id obsolute ...

来源: Laya3.0_api 发布时间: 20231102

1405. 2D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

...卸载后的资源状态: var assets: Array<any> = [] assets.push("resources/apes/monkey0.png"); assets.push("resources/apes/monkey1.png"); assets.push("resources/apes/monkey2.png"); assets.push("resources/apes/monkey3.png"); Laya.loader.load(assets).then(()=>{ for(var i:number = 0, len: ...

来源: Laya3.0_文档 发布时间: 20251010

1406. 疑似clearRes内存泄漏问题 [ 46%]

疑似clearRes内存泄漏问题 【重现步骤】: 场景上两个按钮, 按钮代码如下: 一开始GPUMemory为3.53M,点击按钮1后GPUMemory变为17.59M,点击按钮2后GPUMemory不变化,再次点击按钮1GPUMemory变为31.65M,再次点击按钮2后GPUMemory不变化,如...

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

1407. 多摄像机窗口的使用(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 46%]

...ne.addChild(new Laya.DirectionLight()); //加载模型 Laya.Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(null, function(sp) { //将模型加到场景上 var layaMonkey = scene.addChild(sp); })) ``` 编译运行上述代码,运行效果如图6。开发者...

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

1408. 1整天了,还是没解决加载本地文件问题 [ 46%]

...ackground.png' from origin 'null' has been blocked by CORS policy: Invalid response. Origin 'null' is therefore not allowed access. 加载本地文件总是报错, chrome 浏览器快捷方式有加 --allow-file-access-from-files 了,还是一样。下载的 微信飞机源码,早上能正常...

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

1409. 模型的功能介绍(ActionScript-3D基础(AS3)-LayaAir3D之模型和网格) [ 46%]

...ript //初始化3D场景 var scene:Scene3D = Laya.stage.addChild(Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")) as Scene3D; //获取球型精灵 var sphere:MeshSprite3D = scene.getChildByName("Sphere") as MeshSprite3D; //获取精灵的mesh var sphereMesh:Mesh = sphe...

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

1410. TiledMap销毁的问题,TiledMap销毁后屏幕变灰,不能显示 [ 46%]

...(); var viewRect:Rectangle = new Rectangle(0,0,8600,1800); _map.createMap("res/race.json",viewRect);我的游戏销毁的代码 _map.destroy(); _map = null; Laya.stage.addChild(new Plazz());//ui 经过排查后发现问题出现在TiledMap相关的代码里面 在TiledMap的destroy方法内 /** * ...

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