大约有 1,304 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0058 秒)
Laya_社区(1118) Laya2.0_文档(59) Laya3.0_文档(57) Laya2.0_示例(27) Laya_示例(24) Laya3.0_api(17) laya_api(1) Laya2.0_api(1)
[LayaAirIDE3]Panel会使HSlider的拖拽结束检测事件失效 const sliderButton = this.progressSlider.getChildAt(2) as Laya.Button; console.log("sliderButton:", sliderButton); if (sliderButton) { sliderButton.on(Laya.Event.MOUSE_UP, this, () => {...
来源: Laya_社区 发布时间: 20250710
...纯代码怎么实现场景创建激活,谢谢? const scene = new Laya.Scene(); scene.onOpened = () => { console.log('scene onOpened'); }; scene.open(); console.log('scene', scene.active, scene.activeInHierarchy); Laya.timer.frameOnce(10, this, () => { console.log('scene 2', scene.ac...
来源: Laya_社区 发布时间: 20190218
打包qq小游戏音频播放问题 打包成qq小游戏不管使用 Laya.SoundChannel.position 或者是QQ的API number currentTime 当前音频的播放位置(单位 s)。只有在当前有合法的 src 时返回,时间保留小数点后 6 位(只读) 每一帧获取音频播放的位...
来源: Laya_社区 发布时间: 20200525
...ll, args); console.log( f(1,3) ); console.log( t(1,3) ); 这两个函数在Layabox开发时的目的都是生成一个不确定参数的函数,但导出到微信时Function会调用到其它函数中,请问怎么解决: 附件 : --> 2018-10-31 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20181031
...创意互动项目 ### 一、准备好开发环境 #### 1、下载并安装LayaAirIDE集成开发环境 LayaAirIDE是LayaAir引擎的集成开发环境,集成了LayaAir引擎与示例项目,UI、动画等可视化编辑,项目代码编写与管理等开发工具。 在**LayaAirIDE_2.8.0 Beta4*...
来源: Laya2.0_文档 发布时间: 20210714
...var GameStartView = function () { GameStartView.super(this); this.Start.on(Laya.Event.CLICK, this, this.open); console.log(this.Start); GameStartView.prototype.open = function(){ console.log("Open is ok"); } }; Laya.class(GameStartView,"GameStartView", GameStartUI); 输出:Button {toggle: false, _...
来源: Laya_社区 发布时间: 20180213
protobuf的bytes字段的问题 var msgByte:Laya.Byte = new Laya.Byte(); msgByte.writeUTFBytes("aabbcc"); var LoginReqCls:any =LoginRoot.lookup("login_req"); var loginReq:any = LoginReqCls.create({ 'channel': 2, 'msg': msgByte.buffer }); var loginProto:any= LoginReqCls.encode(loginReq).finish(); va...
来源: Laya_社区 发布时间: 20171105
...ion(_super){ function Dispatcher(){ Dispatcher.super(this); }; //注册类 Laya.class(Dispatcher,"Dispatcher",_super); //实例EventDispatcher类 Dispatcher.eventDispatcher = new Laya.EventDispatcher(); //发送事件 Dispatcher.Emit = function(InName,agv){ //派发事件 console.log("agv-->"+agv...
来源: Laya_社区 发布时间: 20170809
...r = 1; i <= 2; i++) { let e = this.typeBox.getChildByName('btn' + i) as Laya.Image; console.log(e); e.on(Laya.Event.CLICK, this, this.onBtnClick); } 按钮事件 private onBtnClick(event:Laya.Event): void { let b = event.currentTarget as Laya.Image; c...
来源: Laya_社区 发布时间: 20190802
LayaAir 如何读取资源中的txt文件中的内容 var testPath ="res/Test.txt"; console.log( Laya.loader.load(testPath)); console.log(Laya.Loader.getRes(testPath)); 这里打印的是 LoaderManager {retryNum: 1, retryDelay: 0, maxLoader: 5, _loaders: Array(4), _loaderCount: 1…} undefined 并...
来源: Laya_社区 发布时间: 20171009