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

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

2941. 分享一个Shader版的CoolDown实现 [ 29%]

...渲染效果   alpha遮罩   用法: var texture: Laya.Texture = Laya.Loader.getRes("progress.png"); this.spe = new coolDownSprite(); this.spe.init(texture); //this.spe.initWithoutTexture(128, 128); this.spe.pos(300, 350); this.spe.setProgress(this.progress); Laya.stage.addChild(this.spe); -----...

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

2942. 树状列表组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 29%]

...es/tree/clip_tree_folder.png", "resources/tree/clip_tree_arrow.png"]; Laya.loader.load(res).then(() => { this.onLoadComplete(); }); } private onLoadComplete(e: any = null): void { // 初始化树状列表的数据源 var treeData: string = "<data>"; //程序创建的模拟数据,模拟树...

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

2943. HTTP通信 · LayaAir3.4 · 引擎文档 · LAYABOX [ 28%]

...event.lengthComputable) { // 计算下载的百分比 var percent = (event.loaded / event.total) * 100; console.log('下载进度: ' + percent.toFixed(2) + '%'); } }); // 设置请求完成后的处理函数 xhr.onload = function () { if (xhr.status === 200) { console.log("文件下载完成!"); }...

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

2944. laya.d3.core.pixelLine.PixelLineSprite3D [ 28%]

...:Boolean 检测指定事件类型是否是鼠标事件。 EventDispatcher load(url:String, complete:Handler):void[static] 加载网格模板。 Sprite3D off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDisp...

来源: Laya2.0_api 发布时间: 20190513

2945. 分享,扩展Laya.Text组件实现简单的富文本 [ 28%]

...问题请先登录 发起人 he853066732 相关问题 分享:LayaAir下Loading进度条的制作(ActionScript 3.0) 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 分享:自定义事件派发与侦听(A页面派发 B页面侦听) 如何实现微信登录...

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

2946. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 28%]

...void { //每一项加载内容加载完成均可以设置一个回调 Laya.LoaderManager.prototype["_loadAssets"] = function (arr, complete, progress, type, priority, cache, group) { (priority === void 0) && (priority = 1); (cache === void 0) && (cache = true); var itemCount = arr.le...

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

2947. laya.d3.core.MeshTerrainSprite3D [ 28%]

...:Boolean 检测指定事件类型是否是鼠标事件。 EventDispatcher load(url:String, complete:Handler):void[static] 加载网格模板。 Sprite3D off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDisp...

来源: Laya2.0_api 发布时间: 20190513

2948. app构建IOS包 进入游戏提示加载游戏失败,可能由于你的网络不稳定,请退出重进 [ 28%]

... width=1080,height=1920 2018-01-09 20:50:15.135 ZhuaWawa[2531:1863752] download thread num = 3 2018-01-09 20:50:15.146 ZhuaWawa[2531:1863752] found the file in the package:shaders/todevVS.glsl 2018-01-09 20:50:15.147 ZhuaWawa[2531:1863752] found the file in the package:shaders/fillColorPS.glsl 2018-...

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

2949. ProtocolBuffer通信 · LayaAir3.4 · 引擎文档 · LAYABOX [ 28%]

...quire("protobufjs"); // 加载 .proto 文件,与客户端一致 protobuf.load("./protobuf.proto", (err, root) => { if (err) throw err; // 获取消息类型 const ChatMessage = root.lookupType("ChatMessage"); // 创建 WebSocket 服务器,并定义了8080端口,需要与客户端请求的...

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

2950. UI-RefreshList [ 27%]

...a; class UI_RefreshList { constructor() { this.baseBox = null; this.refreshLoading = null; this.loadingAni = null; this.loadingLabel = null; this.refreshList = null; /** 消息生成的当前最大id值 */ this.msgIdNow=1; /** 滚动条效果是否停止 */ this.scrollBarIsStop=false; /** 移动前...

来源: Laya2.0_示例 发布时间: 20260303