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

大约有 36 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0047 秒)

11. laya.gltf.glTFResource_API3.0 [ 80%]

...rch Preparing search index... The search index is not available ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/gltf/glTFResource" glTFResource Class glTFResource Hierarchy Prefab glTFResource Index Constructors constructor Properties destoryedImmediat...

来源: Laya3.0_api 发布时间: 20231102

12. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 77%]

...{ colaStarArr[h] = 0; } } }; return aStarArr; } } Copyright ©Layabox 2022 all right reserved,powered by LayaAir Engine更新时间: 2023-03-03 17:33:44 img{cursor:pointer}

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

13. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 77%]

...in { constructor() { Laya.init(480, 852); Laya.stage.scaleMode = "showall"; Laya.stage.alignV = 'middle'; Laya.stage.alignH = 'center'; Laya.stage.screenMode = "vertical"; Laya.stage.bgColor = "#101825"; this.init() } init() { // 预加载图集 Laya.loader.load("r...

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

14. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 77%]

...et.angel.level; // 构造 function IsLand() { // 初始化 IsLand.__super.call(this); // 名字 this.name = "gemini"; this.init(); } // 注册类 IsLand Laya.class(IsLand,"IsLand",laya.display.Sprite); // 原型 var _proto = IsLand.prototype; // 初始化 _proto.init = function(){ // 球体 this.bal...

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

15. 列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 75%]

...置List,创建出符合自己需要的列表。 Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2024-09-10 16:27:03 img{cursor:pointer}

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

16. socket大型项目回调 [ 75%]

...e RES_OLD_CLIENT:number = 501; private socket:Laya.Socket = null; private callbacks:any = {}; private handlers:any = {}; // Map from request id to route private routeMap = {}; private heartbeatInterval:number = 0; private heartbeatTimeout:number = 0; private nextHeartbeatTimeout:number = 0; private ...

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

17. 2D拖尾渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 75%]

...,可以看到两者效果一致。 (图2-3) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-03-10 16:22:03 img{cursor:pointer}

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

18. 在Laya中使用Matter.js的最简示例 (JS) [ 69%]

...r ground = Bodies.rectangle(400, 500, 810, 60, { isStatic: true }); // add all of the bodies to the world World.add(engine.world, [boxA, boxB, ground]); // run the engine Engine.run(engine); // run the renderer Render.run(render);显示效果如下 但是这还没有用Laya来渲染,需要做下...

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

19. 单选框组组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...+ " 项"); } } 效果如图所示: (图3-1) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2024-09-10 16:27:03 img{cursor:pointer}

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

20. 3D粒子 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

...t; }; //通过名字,清理一组对象池 ClearGroup(head_sign:string, caller:any, func:Function): void { for (var key in this._poolDic) { if (key.indexOf(head_sign) == 0) { var pool = this._poolDic[key]; if (func) { for (var i = 0, len = pool.length; i < len; i++) { var item = pool[i]; func.c...

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