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

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

141. 缓动-缓动函数演示 [ 88%]

... duration, Ease[list.selectedItem]); } createDurationCrontroller() { const Event = Laya.Event; let durationInput = this.createInputWidthLabel("Duration:", '2000', 400, 10); durationInput.on(Event.INPUT, this, function() { duration = parseInt(durationInput.text); }); } createInputWidthLabel(label, pr...

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

142. Image.loadImage 方法加载问题 [ 88%]

...button/button_window_public_space_enter.png";    this.btnEnter.on( Laya.Event.CLICK, this, this.btnClick );    this.width = 1553;    this.height = 270;   }   public set publicSpaceData ( publicSpaceInfoData:any )   {    this._publicSpaceData = publicSpaceInfoData;    console.log...

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

143. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 88%]

...= this._objectInfo.templateInfo.height; this.addChild(this._body); this.on(Event.MOUSE_OVER, this, this.__onMouseOverHole); this.on(Event.MOUSE_OUT, this, this.__onMouseOutHole); } this.pos(this._objectInfo.templateInfo.x, this._objectInfo.templateInfo.y); } private __onMouseOverHole(event:Event):vo...

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

144. Spine动画资源加载时不能同时使用"版本管理"和"URL.basePath" [ 88%]

...; }; var tSkBuffer=Loader.getRes(this._skBufferUrl); if (!tSkBuffer){ this.event(/*laya.events.Event.ERROR*/"error","load failed:"+this._skBufferUrl); return; } //MODIFIED:使用formatPath进行路径过滤 this._path=this.formatPath(this._skBufferUrl.slice(0,this._skBufferUrl.lastIndexOf("/"))+"/")...

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

145. 重复背景,全方向地图拖动Demo [ 88%]

...is.downMouseY = 0 Laya.loader.load(['bg/world_bg.jpg']) Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.mouseDown) Laya.stage.on(Laya.Event.MOUSE_UP,this,this.mouseUp) this.moveMap(this.offsetX,this.offsetY) } moveMap(x,y){ let X = -x00 let Y = -y00 this.map0.x = X this.map0.y = Y this.map3.x = X + 18...

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

146. 网络和格式-Socket [ 88%]

...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Event = Laya.Event; var Socket = Laya.Socket; var Byte = Laya.Byte; var socket; var output; (function() { Laya.init(550, 400); connect(); })(); function connect() { socket = new Socket(); //socket.connect("echo.websocket.org", ...

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

147. laya接入vivo平台加载资源卡住66% [ 88%]

...死wenti if(Browser.onVVMiniGame) {// _http = new HttpRequest(); _http.on(Event.PROGRESS, this, onProgress); _http.on(Event.ERROR, this, onError); _http.on(Event.COMPLETE, this, onLoaded); ////////////////////////////////////////////////////// } else { //...... } 已解决。 2020-11-23 0 0 分享 ...

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

148. 3D中摄像机绕物体旋转该如何实现? [ 88%]

...tor3.distance(this.transform.position, this.AroundPos); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.mouseWheel) } onUpd...

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

149. 官方案例里摄像机绕物体旋转脚本的问题 [ 88%]

...tor3.distance(this.transform.position, this.AroundPos); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.mouseWheel) } onUpd...

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

150. 最新版本IDE,如何获取http返回的json数据 [ 88%]

...a.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.once(Event.PROGRESS,this,processHandler);  var sendData = {account:"aaa",password:"bbb"} xhr.send("http://xxx/login", JSON.stringify(sendData...

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