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

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

291. image.drawToCanvas方法获取的一直是空的png [ 67%]

...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

292. Unity5.5用LayaUnityPlugin 0.55导出模型 [ 67%]

...(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

293. Native iOS 使用系统默认字体 [ 67%]

... "Apple Chancery"; web 版本有效,native 无效 3、删除原生项目 resource/font 目录下的字体文件,测试发现最终执行到 resource/scripts 目录下 index.js 中的方法  initFreeType()bRet = conch.initFreeTypeDefaultFontFromFile("");运行时只会从系统字体库里面找...

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

294. 照相机-多照相机 [ 67%]

... 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

295. [LayaAir3]3.0版本资源销毁后_referenceCount不会变成0,2.0版本是正常的可以变为0 [ 67%]

...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

296. 音频节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

...毕,此方法只执行一次 */ 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

297. [LayaAir3]list.selectHandler [ 67%]

...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

298. [LayaAir3]我修改了这个启动场景,从Loading——>register之后,就导致报这个错误,即使后面修改回去,也不行。怎么解决? [ 67%]

...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

299. laya.d3.core.material.SkyBoxMaterial [ 66%]

...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

300. 请问一下图集打包有命令行模式吗? [ 66%]

...下通过命令获得配置文件 "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