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

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

61. 缓动-缓动函数演示 [ 52%]

...Laya.Label; function ListItemRender() { var label = null; ListItemRender.__super.call(this); this.size(100, 20); label = new Label(); label.fontSize = 12; label.color = "#FFFFFF"; this.addChild(label); this.setLabel = function(value) { label.text = value; } } Laya.class(ListItemRender, "ListItemRend...

来源: Laya_示例 发布时间: 20240929

62. List属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 51%]

... var Image = Laya.Image; var WID = 373, HEI = 85; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box); // 主要逻辑代码 var Stage = Laya.Stage; var L...

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

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

... = target.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(){ // 球体 t...

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

64. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 51%]

... = "data";         constructor(decorate?:Decorate) {             super();             this.mDecorate = decorate || new Decorate(this);             this.pomelo = new Pomelo();             this.configuration();         }         /** 配置*/         private conf...

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

65. 3D粒子编辑模块 · LayaAir3.0文档 · LAYABOX [ 48%]

...enParticleSystem: Array<ShurikenParticleSystem>= []; constructor() { super(); } //通过传入粒子特效的路径,创建一个粒子特效,从对象池里拿一个 static Create(path: string): Particle3D { var ret:Particle3D = Pool.getInstance().getItemByClass("Particle3D@" + path, Parti...

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

66. UI-Tree [ 48%]

...: {"name": "render", "right": "0", "left": "0"}}; function Item() { Item.__super.call(this); this.right = 0; this.left = 0; var selectBox = new Clip("../../res/ui/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox"; //设置 selectBox 的name 为“selectBox”时,将被识别为树结...

来源: Laya_示例 发布时间: 20240929

67. Tree属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 43%]

...: {"name": "render", "right": "0", "left": "0"}}; function Item() { Item.__super.call(this); this.right = 0; this.left = 0; var selectBox = new Clip("../../res/ui/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox"; //设置 selectBox 的name 为“selectBox”时,将被识别为树结...

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

68. 网络通信 · LayaAir3.0文档 · LAYABOX [ 42%]

...: class HttpRequestExtension extends Laya.HttpRequest { constructor() { super(); } public send(url:string,data:any=null,method:string="get", responseType:string="text", headers:any=null):void{ super.send(url,data,method,responseType,headers); this._http.upload.onprogress= function(e:any):void { //...

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

69. 示例打地鼠发布打包后提示TypeError: this.preinitialize is not a function [ 37%]

...ypeError: this.preinitialize is not a function            !1,i.__super.call(this),this._layout=B.EMPTY,this.preinitialize(),this.createChildren(),this.initial            TypeError: this.preinitialize is not a function                at i (http://stand.alone.version/...

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

70. laya.ui.Tree_API3.0 [ 34%]

...aya.stage.addChild(tree);//将 tree 添加到显示列表。 } (function (_super) { function Item() { Item.__super.call(this);//初始化父类。 this.right = 0; this.left = 0; var selectBox = new laya.ui.Clip("resource/ui/clip_selectBox.png", 1, 2); selectBox.name = "selectBox";//设置 selectBox ...

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