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

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

141. HttpRequest详解(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 62%]

...stExtension extends HttpRequest { public function HttpRequestExtension() { super(); } public override function send(url:String, data:*=null, method:String="get", responseType:String="text", headers:Array=null):void { super.send(url,data,method,responseType,headers); this._http.upload.onprogress= fun...

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

142. 发现bug,update大问题!!!!!!!!! 2.13版本 [ 62%]

...     private isright: boolean = false;     constructor() {         super();         this.packageName = "Game";         this.resName = "Main";         this.isFullWindow = true;     }      /**      * 初始化组件 第一次new的时候执行      */     onConstruct()...

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

143. UI-List [ 62%]

...3, HEI = 85; const Box = Laya.Box; class Item extends Box { constructor(){ super(); const Image = Laya.Image; this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); } setImg(src) { this.img.skin = src; } } class UI_List { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebG...

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

144. UI-List [ 62%]

... 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...

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

145. 官方提供的关系链代码执行报错,是不是wx的sharedCanvas不是Laya的canvas导致的问题 [ 62%]

...esource.Texture extends laya.events.EventDispatcher var Texture=(function(_super){ function Texture(bitmap,uv){ /**图片或者canvas 。*/ //this.bitmap=null; /**UV信息。*/ //this.uv=null; /**沿 X 轴偏移量。*/ this.offsetX=0; /**沿 Y 轴偏移量。*/ this.offsetY=0; /**原始宽度(包...

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

146. Cannot read property 'toDefault' of undefined报错是什么原因 [ 61%]

...ckingScene", Laya.Scene); function MousePickingScene() { MousePickingScene.super(this); this.camera = new Laya.Camera(0,0.1,100); this.addChild(this.camera); this.camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; this.skyBox = new Laya.SkyBox(); this.camera.sky = this.skyBox; this.skyBox.textureCube...

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

147. 请问laya有没有类似翻页容器(pageView)的组件? [ 61%]

...te m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler =...

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

148. 1.76beta引擎库的BUG:Laya.List动态载入后,滑动时会将list框本身的滑动区域一并向滑动方向移动,会出现点击list中空白区域就无法滑动的情况 [ 61%]

...  test: Array<number> = [];     constructor()     {         super();         this.list.vScrollBarSkin = '';         this.list.itemRender = Item_List;         this.list.renderHandler = new Laya.Handler(this, this.onItemRender);         this.list.scrollBar.elasticBackTim...

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

149. 基础文本 · LayaAir3.0文档 · LAYABOX [ 60%]

...a.Sprite3D; @property({ type: Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "第{n=1}页"; //显示文本的初始化内容 } onStart(): void { let page: number = 1; Laya.timer.frameLoop(10, this, () => { page += 1; //在定时器中让变量page每次...

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

150. 新手引导在ios浏览器表现异常 [ 60%]

...ner: Laya.Image;         constructor() {             super();             this.init();         }         private init() {             this.size(Laya.stage.width,Laya.stage.height);             this.guideContainer = new La...

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