大约有 523 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0233 秒)
Laya_社区(428) Laya2.0_文档(51) Laya2.0_示例(16) Laya_示例(12) Laya3.0_文档(10) laya_api(2) Laya3.0_api(2) Laya2.0_api(2)
...); } bindMeshRender(webXRInput:WebXRInputManager){ let rightControl = Laya.loader.getRes("res/OculusController/controller.gltf") as Sprite3D; let leftControl = Laya.loader.getRes("res/OculusController/controller-left.gltf") as Sprite3D; let pixelright = new PixelLineSprite3D(20,"right"); let pixelle...
来源: Laya3.0_文档 发布时间: 20251010
...载建筑图片 private loadBuildingImage(): void { Laya.loader.load( "res/building.png", // 你的建筑图片路径 Laya.Handler.create(this, () => { // 加载完成后绘制到building Sprite上 ...
来源: Laya_社区 发布时间: 20251125
... text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_i18n$${1101 + index}`][ConfigInfo.lang] } public setCurPage(index: number) { if (this.m_index != index) { for (let i = 1; i < 7; i++) { let skin = "u...
来源: Laya_社区 发布时间: 20170215
...用后执行,例如节点被添加到舞台后 onEnable(): void { Laya.loader.load(this.backgroundTexture).then(() => { this.createLightOccluder(); this.createSpotLight(); this.createBackground(); }); } // 创建2D光遮挡器 createLightOccluder(): void { this.lightOccluder.pos(233, 265); this...
来源: Laya3.0_文档 发布时间: 20251010
...问题的根源在于sk文件解析完毕后企图加载配套png时给到LoaderManager的png图片路径为已加上URL.basePath的路径(在此例中为https://www.xx.com/sp.png),而在version.json中记录的真实文件名映射关系中,key值为不带有URL.basePath的路径(在此...
来源: Laya_社区 发布时间: 20190419
...淡 代码添加场景雾: //添加3D场景 GamePanel.curScene = Laya.loader.getRes("res/LayaScene_wu/Conventional/wu.ls"); Laya.stage.addChildAt(GamePanel.curScene, 0); //开启雾化效果 GamePanel.curScene.enableFog = true; //设置雾化的颜色 GamePanel.curScene.fogColor = new Laya.Vector...
来源: Laya_社区 发布时间: 20190412
...tChildAt(13) as MeshSprite3D; var texture:Texture2D = Loader.getRes("res/heightMap.png") as Texture2D; //通过高度图纹理和最大高度最小高度生成MeshTerrainSprite3D var terrainSprite:MeshTerrainSprite3D = MeshTerrainSprite3...
来源: Laya_社区 发布时间: 20170505
... // 创建一个用于存放位图数组的临时精灵 let texture = Laya.loader.getRes(options.srcPath+options.srcName+".png"); // 读取图集生成大切片 let textureIns = Laya.Texture.create(texture, aniProps.res[aniProps.mc[options.srcName].frames[i].res].x, aniProps.res[aniProps.mc[options....
来源: Laya_社区 发布时间: 20190215
...e = [{url: "Box/LayaScene_JJF/Conventional/JJF.lh"}]; Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete)); } onComplete(){ //创建场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //创建相机 var camer...
来源: Laya_社区 发布时间: 20190605
... string): void { Laya.SoundManager.stopAll(); Laya.loader.clearRes(currentBgmUrl); Laya.loader.load([{ url: currentBgmUrl, type: Laya.Loader.SOUND }], Laya.Handler.create(this, () => { console.log("----playMusic111 ...
来源: Laya_社区 发布时间: 20250930