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

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

2531. 动画状态机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 28%]

...prite3D; private animator : Laya.Animator; onStart() { this.label.on( Laya.Event.CLICK, this, this.test ); //获得状态机 this.animator = this.target.getComponent<Laya.Animator>(Laya.Animator); } //运行状态机的跑动画,可使用动作融合方式 test(e: Laya.Event) { //动画状...

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

2532. 预制体模块 · LayaAir3文档 · LAYABOX [ 27%]

...en("./Scenes/Index.ls"); }); }); // 侦听加载失败 Laya.loader.on(Laya.Event.ERROR, this, this.onError); }); } /** * 当报错时打印错误 * @param err 报错信息 */ onError(err: string): void { console.log("加载失败: " + err); } /** * 加载时侦听 */ onLoading(progress: number): voi...

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

2533. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 27%]

...en("./Scenes/Index.ls"); }); }); // 侦听加载失败 Laya.loader.on(Laya.Event.ERROR, this, this.onError); }); } /** * 当报错时打印错误 * @param err 报错信息 */ onError(err: string): void { console.log("加载失败: " + err); } /** * 加载时侦听 */ onLoading(progress: number): voi...

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

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

...mpents(this._allAgent, sprite.scene, Nav2DAgent); } onMouseClick(evt: Laya.Event): void { let pos = new Laya.Vector2(evt.stageX, evt.stageY); console.log("click", pos); this._temp.graphics.clear(); this._allAgent.forEach((agent) => { agent.destination = pos; let paths = agent.getCurrentPath(); if...

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

2535. 2D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 23%]

....drawCircle(0,0,20,"#990000"); Laya.stage.addChild(sp); Laya.stage.on(Laya.Event.MOUSE_MOVE,this,function() { sp.pos(Laya.stage.mouseX,Laya.stage.mouseY); }); (图3-1) 此时FPS显示30,并且在鼠标移动时,可以感觉到圆球位置的更新不连贯。设置Stage.frameRate为Stage.FRA...

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

2536. LayaAirNative初始化的4个问题 [ 23%]

...主程序过大的问题 我这样载入场景问题出现在哪呢?? event自定义事件的问题 问题状态 最新活动: 2018-07-01 19:38 浏览: 2174 关注: 5 人 helloworldlv • 2018-07-02 11:14 发邮箱 775331175@qq.com 还有手机型号信息 谢谢 Laya_Aaron • 2018-06-28 15:27 ...

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

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

...   at Loader.Laya3D._onHierarchylhLoaded (libs/laya.d3.js:1933)     at EventHandler.__proto.runWith (libs/laya.core.js:1628)     at Loader.__proto.event (libs/laya.core.js:1384)     at Loader.__proto.complete (libs/laya.core.js:16209)     at Loader.__proto.onLoaded (libs/laya.core.js:16157)...

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

2538. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 21%]

...et template = new Laya.Templet();             template.on(Laya.Event.COMPLETE, this, function() {                 let skeleton = template.buildArmature(0);                 Laya.stage.addChild(skeleton);                 skeleton.pos(300, 300...

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

2539. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 19%]

...ions", inspector: "Buttons", options : { buttons : [ { caption : "点我", event: "my_click" } ] } } ] } ]); this._panel.allowUndo = true; //根据需要设置 //如果不需要undo功能,也可以直接this._data = {}; this._data = IEditor.DataWatcher.watch({}); //inspect可以多次调用,将...

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