大约有 842 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0045 秒)
Laya_社区(496) Laya3.0_api(111) Laya3.0_文档(70) Laya_示例(45) Laya2.0_api(42) laya_api(39) Laya2.0_文档(30) Laya2.0_示例(9)
...ckage { import laya.display.Sprite; import laya.display.Stage; import laya.resource.HTMLCanvas; import laya.resource.Texture; import laya.ui.Image; import laya.utils.Handler; import laya.webgl.WebGL; public class LayaAirDemo { private var img:Image; public function LayaAirDemo() { Laya.init(800, 600...
来源: Laya_社区 发布时间: 20170704
...(new Laya.MeshSprite3D(Laya.Mesh.load("3d/LayaScene_/Library/unity default resources-Cube.lm"))); var skinMesh1 = rootSkinMesh.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("3d/LayaScene_/Library/unity default resources-Sphere.lm"))); LayaScene_.zip 2017-02-23 0 0 分享 微博 QZONE 微信 183*****...
来源: Laya_社区 发布时间: 20170223
... "Apple Chancery"; web 版本有效,native 无效 3、删除原生项目 resource/font 目录下的字体文件,测试发现最终执行到 resource/scripts 目录下 index.js 中的方法 initFreeType()bRet = conch.initFreeTypeDefaultFontFromFile("");运行时只会从系统字体库里面找...
来源: Laya_社区 发布时间: 20181119
... import laya.d3.math.Vector4; import laya.d3.math.Viewport; import laya.d3.resource.TextureCube; import laya.d3.resource.models.Mesh; import laya.d3.resource.models.SkyBox; import laya.display.Stage; import laya.utils.Stat; import common.CameraMoveScript; public class MultiCamera { public function M...
来源: Laya_示例 发布时间: 20251209
...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
...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
...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
...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
...下通过命令获得配置文件 "C:\Program Files\LayaAirIDE_版本号\resources\app\out\vs\layaEditor\libs\TP\AtlasGenerator.exe" --init配置完成后执行 "C:\Program Files\LayaAirIDE_版本号\resources\app\out\vs\layaEditor\libs\TP\AtlasGenerator.exe" --config atlasConfig就会按照配置...
来源: Laya_社区 发布时间: 20161201