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

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

11. 自定义shader-地形shader [ 74%]

...reenMode = Laya.Stage.SCREEN_NONE; initShader(); var scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/terrain/terrain.ls")); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-38, 180, 0), false, false); camera.transform.trans...

来源: Laya_示例 发布时间: 20251130

12. 3D粒子 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...系统,用于后面整体播放 for (var i = 0, len = this._particle.numChildren; i < len; i++) { var child:Node = this._particle.getChildAt(i); if (child instanceof Laya.ShuriKenParticle3D) { this._shuriKenParticle3D.push(child); this._shurikenParticleSystem.push(child.particleSystem); } } thi...

来源: Laya3.0_文档 发布时间: 20251010

13. UI运行时 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...括子节点下 searchButton(ui: Laya.Node) { for (let i = 0; i < ui.numChildren; i++) { let child = ui.getChildAt(i); if (child instanceof Laya.Button) { console.log("发现Button"); this.onButtonScaleEvent(child); } else { //查找子节点 this.searchButton(child); } } } //处理按钮缩放...

来源: Laya3.0_文档 发布时间: 20251010

14. LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) [ 64%]

...r.getGameObjectData (UnityEngine.GameObject gameObject, .JSONObject parentsChildNodes, Boolean statisticalCount) LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, .JSONObject parentsChildNodes, Boolean statisticalCount) LayaExport.DataManager.getGameObjectData (UnityEngine...

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

15. 安装layaair2-cmd一直失败 [ 64%]

...    at EventEmitter.emit (events.js:210:5) 31944 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14) 31944 verbose stack     at ChildProcess.emit (events.js:210:5) 31944 verbose stack     at maybeClos...

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

16. 富文本:LayaAir下 HtmlDivElement的使用汇总 [ 63%]

...Box</span><span>欢迎你的加入</span>" Laya.stage.addChild(div);2、获取Html文本的实际内容、获取html文本的实际宽高(contextWidth、contextHeight) 示例如下:var htmlDiv:HTMLDivElement=new HTMLDivElement(); var html:String = "<span color='#e3d26a'&gt...

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

17. 2D寻路 · LayaAir3.3 · 引擎文档 · LAYABOX [ 59%]

...; if (comp != null) { lists.push(comp); } for (var i = 0; i < sprite.numChildren; i++) { let child = sprite.getChildAt(i) as Sprite; this.findCompents(lists, child, componentType); } } //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake():...

来源: Laya3.0_文档 发布时间: 20251010

18. VSCode高效开发工作流配置指南(TypeScript-IDE篇(TS)-代码模式基础) [ 34%]

... ```json const {watch ,task } = require("gulp"); const {exec} = require("child_process"); function compile(cb) { //执行编译命令 layaair2-cmd compile let process = exec("layaair2-cmd compile"); process.stdout.on("data",(data)=>{ console.log(data); }); process.stderr.on("data",(data)=>{ console....

来源: Laya2.0_文档 发布时间: 20210715

19. [LayaNative3]2d示例程序构建发布打包后,在OpenHarmony运行闪退 [ 30%]

...lt 0 01-06 17:34:41.557 335 335 I C02c11/APPSPAWN: [appspawn_service.c:581]child process com.layabox.game success pid 23051 01-06 17:34:41.557 335 335 I C02c11/APPSPAWN: [appspawn_service.c:102]Add com.layabox.game, pid=23051 success 01-06 17:34:41.557 335 335 I C02c11/APPSPAWN: [appspawn_service.c:...

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