大约有 620 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0054 秒)
Laya_社区(477) Laya2.0_文档(51) Laya3.0_api(50) Laya2.0_示例(16) Laya_示例(12) Laya3.0_文档(10) laya_api(2) Laya2.0_api(2)
...d)return null; }; var tSound; if (!Browser.onMiniGame){ tSound=Laya.loader.getRes(url); } if (!soundClass)soundClass=SoundManager._soundClass; if (!tSound){ tSound=new soundClass(); tSound.load(url); Loader.cacheRes(url,tSound); }; var channel; channel=tSound.play(startTime,loops); if (!channel)retu...
来源: Laya_社区 发布时间: 20180709
...ource.ts:147 如果设置一个已缓存的资源obsolute为true,则 1)getRes仍然可以返回这个资源; 2)下次加载时会忽略这个缓存而去重新加载。。 Returns boolean Inherited from Resource.obsolute Defined in laya/resource/Resource.ts:151 如果设置一个已缓存的...
来源: Laya3.0_api 发布时间: 20231115
...omplete():void{ //创建3D角色 //实例化角色 this.role = Laya.loader.getRes("res/LayaScene_girl/girl.lh"); this.scene.addChild(this.role); //角色位置 this.role.transform.position = new Laya.Vector3(0,1,2); } } new LayaAir3D(); 但发布到微信工具运行失败,提示错误如下:...
来源: Laya_社区 发布时间: 20180307
... } const music = ResourceManager.Instance.getRes(url); if (music) { func(); } else { ResourceManager.Instance.load(url).then(func); } } catch (e) { ...
来源: Laya_社区 发布时间: 20250930
...ource.ts:147 如果设置一个已缓存的资源obsolute为true,则 1)getRes仍然可以返回这个资源; 2)下次加载时会忽略这个缓存而去重新加载。。 Returns boolean Inherited from Resource.obsolute Defined in laya/resource/Resource.ts:151 如果设置一个已缓存的...
来源: Laya3.0_api 发布时间: 20231115
...ound(): void { this.owner.addChild(this.background); let tex = Laya.loader.getRes("resources/bg2.png"); let mesh2Drender = this.background.addComponent(Laya.Mesh2DRender); mesh2Drender.sharedMesh = this.generateRectVerticesAndUV(1000, 1000); mesh2Drender.texture = tex; mesh2Drender.lightReceive = tr...
来源: Laya3.0_文档 发布时间: 20251010
...n normalizeApe() { var originalApe = createApe(); apeTexture = Laya.loader.getRes(ApePath); originalApe.x = (Laya.stage.width - apeTexture.width * 3) / 2; originalApe.y = (Laya.stage.height - apeTexture.height) / 2; } function makeRedApe() { //由 20 个项目(排列成 4 x 5 矩阵)组成的数...
来源: Laya2.0_文档 发布时间: 20210714
...t(13) as MeshSprite3D; var texture:Texture2D = Loader.getRes("res/heightMap.png") as Texture2D; //通过高度图纹理和最大高度最小高度生成MeshTerrainSprite3D var terrainSprite:MeshTerrainSprite3D = MeshTerrainSprite3D.creat...
来源: Laya_社区 发布时间: 20170505
...ource.ts:147 如果设置一个已缓存的资源obsolute为true,则 1)getRes仍然可以返回这个资源; 2)下次加载时会忽略这个缓存而去重新加载。。 Returns boolean Inherited from Resource.obsolute Defined in laya/resource/Resource.ts:151 如果设置一个已缓存的...
来源: Laya3.0_api 发布时间: 20231115
...ource.ts:139 如果设置一个已缓存的资源obsolute为true,则 1)getRes仍然可以返回这个资源; 2)下次加载时会忽略这个缓存而去重新加载。。 Returns boolean Inherited from Resource.obsolute Defined in laya/resource/Resource.ts:143 如果设置一个已缓存的...
来源: Laya3.0_api 发布时间: 20231102