大约有 799 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0097 秒)
Laya_社区(467) Laya3.0_api(111) Laya3.0_文档(62) Laya_示例(45) Laya2.0_api(42) laya_api(39) Laya2.0_文档(24) Laya2.0_示例(9)
...eCount不会变成0,2.0版本是正常的可以变为0 Laya.loader.load('resources/UI/role/mxxxx.png', Laya.Loader.IMAGE).then((res: Laya.Texture) => { let sp = new Laya.Sprite(); sp.texture = res; Laya.stage.addChild(sp); setTimeout(() => { sp.destroy() }, 1000); });重现代码如上,代...
来源: Laya_社区 发布时间: 20231130
...毕,此方法只执行一次 */ onAwake(): void { this.sound.source = "resources/sound.wav"; //音频路径 this.sound.loop = 0; //循环次数设置,要放在autoPlay参数设置前 this.sound.autoPlay = true; //自动播放 this.sound.isMusic = false; //是否为背景音乐 } } 2.代码创建...
来源: Laya3.0_文档 发布时间: 20251010
... "Apple Chancery"; web 版本有效,native 无效 3、删除原生项目 resource/font 目录下的字体文件,测试发现最终执行到 resource/scripts 目录下 index.js 中的方法 initFreeType()bRet = conch.initFreeTypeDefaultFontFromFile("");运行时只会从系统字体库里面找...
来源: Laya_社区 发布时间: 20181119
...isterRT.ts" for import "main" [Ln 96, Col 49] at /D:/Laya3IDE/LayaAirIDE/resources/app.asar/game.js:2编译失败 at /D:/Laya3IDE/LayaAirIDE/resources/app.asar/game.js:2 附件 : --> 2025-10-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...
来源: Laya_社区 发布时间: 20251028
...e.trim()){ case "0":{ if(this.btn.selected){ this.btn.skin="resources/ui/目录2.png"; let modelCtrl:ModelCtrl =Laya.stage.getChildByName("Scene3D").getComponent(ModelCtrl) as ModelCtrl; if(modelCtrl!=null){ this.uiCtrl.InitLeftUI(modelCtrl.data.result); } if(this.uiCtr...
来源: Laya_社区 发布时间: 20241014
...lasspublic class SkyBoxMaterialInheritanceSkyBoxMaterial BaseMaterial laya.resource.Resource SkyBoxMaterial 类用于实现SkyBoxMaterial材质。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alphaTest : Boolean 获取是否透明裁剪。 ...
来源: Laya2.0_api 发布时间: 20190513
...aya.loader.getRes("res/atlas/test.png"); //let texcpy:laya.resource.Texture = Laya.loader.getRes("res/atlas/test.png") let texcpy:laya.resource.Texture = img.drawToTexture(100,100,0,0); let copyimg:Laya.Sprite = new Laya.Sprite(); copyi...
来源: Laya_社区 发布时间: 20190730
macOS系统运行layaair-cmd resourceVersion报错 环境:macOS 10.13.4 版本:layaair-cmd resourceVersion 2.2.5 运行layaair-cmd resourceVersion -i ./src/res -o ./src -n 1000 报错,错误如下: internal/child_process.js:323 throw errnoException(err, 'spawn'); ^ ...
来源: Laya_社区 发布时间: 20180523
...执行一次 onAwake(): void { //加载Spine动画资源 Laya.loader.load("resources/boy/spineboy-pma.skel").then(() => { //添加spine组件 this.spine = this.sprite.addComponent(Laya.Spine2DRenderNode); this.spine.source = "resources/boy/spineboy-pma.skel"; this.spine.animationName = "walk"; })...
来源: Laya3.0_文档 发布时间: 20250104
...NE; Laya.Stat.show(); this.path = new Array(); //预加载所有资源 var resource = [ { url: "../../res/threeDimen/scene/TerrainScene/XunLongShi.ls", clas: Laya.Scene, priority: 1 }, { url: "../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", clas: Laya.Sprite3D, priority: 1 }, { url: "../.....
来源: Laya_示例 发布时间: 20260303