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

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

451. 3d文字在浏览器能正常运行,打包后使用时会报错 [ 71%]

...ngContext":No function was found that matched the signature provided   在this.texture2D.loadImageSource(this.cav);报错   this.cav = Laya.Browser.createElement("canvas"); this.cav.width = 256; this.cav.height = 256;  var cxt = this.cav.getContext("2d"); cxt.fillStyle = 'rgb(' + '220' + ',' + '5...

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

452. laya.ui里的tag不能赋值使用? [ 71%]

...sh使用吗?     masterbtn.tag = 0; masterbtn.on(Laya.Event.MOUSE_UP,this,this.onItemMaster); _proto.onItemMaster = function(params){ var btn = params.currentTarget; console.log("----------------------- ",btn.tag);//我赋值是0,但这里调用获取是2?? } 2017-11-20 添加评论 免费...

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

453. Laya3.0正式版spine3.8的动画资源不能正常显示 [ 71%]

...res/spineboy-pma.skel", Loader.SPINE).then((templet: SpineTemplet) => { this.skeleton = new SpineSkeleton(); this.skeleton.templet = templet; this.owner.addChild(this.skeleton); this.skeleton.pos( this.pageWidth / 2, this.pageHeight / 2 + 100); this.skeleton.scale(0.4, 0.4); this.skeleton.on(Laya...

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

454. 和原生Dom交互 · LayaAir3.0文档 · LAYABOX [ 71%]

...代码如下: var div:any = Laya.Browser.document.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div,{ width:100, height:100 }); var url:string = "http://layabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,this.clickHandler); this.qrcodeSp = new Laya.Sprite()...

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

455. tweenline label事件诡异 [ 71%]

tweenline label事件诡异 this.timeLine.addLabel("rotate1",0).to(this.godContaner,{rotation:-5},200,null,0) .addLabel("rotate2",0).to(this.godContaner,{rotation:0},200,null,0); this.timeLine.play(0,true); this.timeLine.on("label", this, function(label){ console.log(label) }); 两个问题 1 为...

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

456. 求教 颜色滤镜和混合模式使用 [ 71%]

...没有办法实现, 下面是之前flash代码   bitmapData.applyFilter(this._mask, this._mask.rect, zeroPoint, this._colorFilter);   sprite.copyPixels(this._base, this._base.rect, zeroPoint);   sprite.draw(bitmapData, null, null, this._maskBlendMode); 2016-07-30 添加评论 免费帖 --> 分...

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

457. 关于3d场景上Button点击事件顺序问题 [ 71%]

...2,在场景中加入了鼠标点击事件  Laya.stage.on(Event.MOUSE_DOWN,this,sceneClick);   private function sceneClick():void {     trace("scene clicked"); }   3,在button上添加按钮功能 button.on(Event.CLICK,this,onBtn); private function onBtn(e:Event):void {     e.stopPropagation(...

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

458. web和微信端没有问题,打包成apk后 httprequest报Request failed Status:404 text:undefined [ 71%]

...邀请: 与内容相关的链接 提交 2 个回复 金风 赞同来自: this.xhr.once(Laya.Event.COMPLETE, this, this.CompleteHandler); this.xhr.once(Laya.Event.ERROR, this, this.ErrorHandler); this.xhr.on(Laya.Event.PROGRESS, this, this.ProgressHandler); this.xhr.send(Global.WebHost+this.currentRe...

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

459. Not FoundLayaAirIDE_1.7.10_beta 無法下載 [ 71%]

... The requested URL /download/LayaAirIDE_1.7.10_beta.zip was not found on this server.   The requested URL /download/LayaAirTS_1.7.10_beta.zip was not found on this server.   麻煩提供檔案到外網,好讓其他開發者下載。 2017-08-29 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

460. 关闭指定定时器timer [ 71%]

...请问我该怎么写呢? 假设有这两个定时器 Laya.timer.loop(100, this,update); Laya.timer.loop(1000,this,shoot_boss); 我希望关闭第二个定时器,该如何使用clear呢? 谢谢。 2016-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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