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

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

511. 使用百度地图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 83%]

...div容器 二、接着是构造函数: constructor() { Laya.init(1, 1); this.init(); // 使用高精度位置 Laya.Geolocation.enableHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, this.updatePosition), Laya.Handler.create(this, this.onError)); // 绑定convertToBaidu...

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

512. 代码2.0.2版本Laya.Animator发现play方法的存在BUG [ 83%]

...:   override protected function _onEnable():void { for (var i = 0, n = this._controllerLayers.length; i < n; i++) { if (this._controllerLayers[i].playOnWake) { var controllerLayer = this._controllerLayers[i]; var curPlayState = controllerLayer._currentPlayState; if (curPlayState == null) { var...

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

513. Sprite3D添加组件或脚本(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 83%]

...yaMonkey/LayaMonkey.lh"]; Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete)); } onComplete(){ //记载场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //加载相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector...

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

514. 计时器-延迟调用 [ 83%]

...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.demonstrate(); } demonstrate() { for (let i = 0; i < 10; i++) { Laya.timer.callLater(this, this.onCallLater); } } onCallLater() { const Text = Laya.Text; console.log("onCallLater triggered"); let text = new Text(); text....

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

515. drawTexture 画出来的数据会有以前的数据 [ 83%]

...th = 1280; iconSpr.height = 640; iconSpr.addChild(img); btn.on(Event.CLICK,this,runGame1); } private function runGame1():void { xNum = Math.random()*7 - 3; yNum = Math.random()*7 - 3; Laya.timer.loop(20,this,onRun); Laya.timer.frameLoop(10,this,refresh); } private function refresh():void { IconSpr.g...

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

516. 关于环形进度条,进度不能重置问题 [ 83%]

...复 cuixueying 赞同来自: gls_laybox var IndexView = (function(_super){ this.angle; this.draw; this.box; this.circle; function IndexView(){ IndexView.super(this); this.angle = 0; Laya.timer.loop(200,this,this.loadProgress) var Sprite = Laya.Sprite; this.box = new Sprite(); this.box.cacheAs = "bit...

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

517. Laya 绑定显示内容到骨骼动画 [ 83%]

...Laya.Skeleton { private __bindList:BindSource[]; constructor(){ super(); this.__bindList=[]; }  /** * 绑定 * @param source */ bind(source:BindSource):void{ let index:number=this.__bindList.indexOf(source); if(index&lt;0){ this.__bindList.push(source); } this.addChild(source); this.timer.frame...

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

518. 关于list空间的问题 [ 83%]

...s/ui/listskins/1.jpg");     data.push("../../res/ui/listskins/2.jpg"); } this._ui.serverList.vScrollBarSkin = ""; this._ui.serverList.selectHandler = new Handler(this, this.onSelect); this._ui.serverList.renderHandler = new Handler(this, this.onUpdateItem); //this._ui.serverList.array = this._load...

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

519. 网络请求添加headers后 post数据错误 [ 83%]

...加headers则正常  示例代码  var headers = [ 'C-Sign', sign ]; // this.caller = caller; this.callbackHandler = callback; // this.errcallback = errcallback; //this.http.once(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); this.http.once(Laya.Event.COMPLETE, this, this.onHttpRequestCom...

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

520. Tree属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 83%]

...g", "res/ui/tree/clip_tree_arrow.png" ]; Laya.loader.load(res, new Handler(this, this.onLoadComplete)); } private onLoadComplete(): void { // 组装tree的数据 var treeData: string = ""; for (var i: number = 0; i "; for (var j: number = 0; j "; } treeData += ""; } treeData += ""; // 解析tree的...

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