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

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

511. 计时器-延迟调用 [ 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_示例 发布时间: 20241118

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

513. 关于环形进度条,进度不能重置问题 [ 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

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

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. 网络请求添加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

517. 关于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

518. 3D物体检测到碰撞后,被碰撞物被移除的时候过30秒再次出现?并添加到舞台 [ 83%]

...后删除对方。 PlayerMove.prototype.onTriggerStay = function (other) { this.tsizex = this.box._components[0]._transformOrientedBoundBox.extents.x; this.tsizez = this.box._components[0]._transformOrientedBoundBox.extents.z; this.osizex = other._transformOrientedBoundBox.extents.x; this.osizez = o...

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

519. UI-Label [ 83%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } setup() { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FFFFFF").pos(290, 100...

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

520. Byte writeArrayBuffer的Bug [ 83%]

...   if (length==0)length=arraybuffer.byteLength-offset;         this.ensureWrite(this._pos_+length);         var uint8array=new Uint8Array(arraybuffer);         this._u8d_.set(uint8array.subarray(offset,offset+length),this._pos_);         this._pos_+=length;    ...

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