大约有 2,539 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0085 秒)
Laya_社区(1916) Laya3.0_api(163) laya_api(112) Laya2.0_api(107) Laya2.0_文档(76) Laya_示例(68) Laya2.0_示例(51) Laya3.0_文档(46)
...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
...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
...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
...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
....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
...主程序过大的问题 我这样载入场景问题出现在哪呢?? 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
... 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
...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
...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