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

大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0098 秒)

1371. laya升级到2.0.0beat4版本,加载场景出现的bug [ 83%]

...载:Laya.loader.create("Laya/Conventional/Map_SCC.ls",Laya.Handler.create(this,this.LoadCompleteHandler)); 加载完成后: var scene3D:Laya.Scene3D = Laya.loader.getRes(this.mSceneName) as Laya.Scene3D; Laya.stage.addChild(scene3D); 异常: TypeError: node._setParent is not a function preload.js:55...

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

1372. Laya Label text不显示 [ 83%]

Laya Label text不显示 public static showNativeGroup() { /* if (this.nativeGroup) { return; } */ var self = this; Laya.View.load(SdkUtil.sdkDomain + "sdkres/laya/native/NativeGroup.json", new Laya.Handler(this, function (group: Laya.View) { /* if (this.nativeGroup) { return; } */ self.nativeGroup...

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

1373. 微信加载文件失败没有回调 [ 83%]

...rror")} LoadOK(){console.log("LoadOK")}   Laya.loader.on(Laya.Event.ERROR,this,this.LoadError) Laya.loader.load("不存在的图片URL",Laya.Handler(this,this.LoadOK));     发布成微信小游戏版本在真机微信上运行,发现这2个回调都没执行。   2018-09-20 添加评论 免...

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

1374. graphics.drawTexture()如何改变层级 [ 83%]

...次的低 ,(除了调换绘制顺序,顺序没法改变) 如下: this.bg.graphics.drawTexture(this.bgTexture, 100, 734, 64, 76); this.bg.graphics.drawTexture(this.bgTexture, 131, 703, 64, 76); 怎么让第二行绘制图像的层级比第一行低 2018-01-08 添加评论 免费帖 --> 分...

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

1375. 在鸿蒙系统上显示问题。在鸿蒙系统下。 [ 83%]

...统下。 blob:https://ask.layabox.com/9cdefc ... dee24方法在Toos. 做 this.showCanvas(); // this.showImageInCanvas() 做这两个切换就行 附件 : --> test.zip 2022-04-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...

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

1376. 类未找到方法 [ 83%]

...llback(success:Boolean):void { if(success) { loadingRes(); } } "TypeError: this.loadingRes is not a function\n at RequestConfig.__proto.requestCallback [as _callback] 2017-01-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...

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

1377. 如何设置Animation动画的宽高? [ 83%]

...相关的链接 提交 4 个回复 qwer535305054 赞同来自: 152*****450 this.ani_light1 = new Laya.Animation(); this.ani_light1.loadAnimation("JLWDYCAni/chip.ani"); this.ani_light1.scaleX = 0.8; this.ani_light1.scaleY = 0.8;   2017-11-13 1 0 分享 微博 QZONE 微信 Laya_XS 赞同来自: 你...

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

1378. 怎么调用UI界面的属性 [ 83%]

...59643 • 2017-03-18 10:16 @Laya_XS:我建了一个UI的子类然后写了 this.btn_fapai.on("click", this, this.fapai);、 private function fapai():void { this.btn_kaipai.visible=true; } 没效果啊 cuixueying • 2017-03-18 10:31 看下IDE自动生成的Demo,里面就有用到! h690...

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

1379. 场景雾化 挡不住天空盒????????????? [ 83%]

...ox; skyBox.textureCube = Laya.TextureCube.load("res/skyBox1/skyCube.ltc"); this.sceneMap.enableFog = true; this.sceneMap.fogColor = new Laya.Vector3(0.6,0.3,0); this.sceneMap.fogStart = 5; this.sceneMap.fogRange = 50; 请问 怎么设置才能让雾 也对天空盒起作用? 2018-07-23 添加评...

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

1380. Animation的complete事件发出是时机不够准确 [ 83%]

...frameLoop():void { if (_style.visible && _style.alpha > 0.01) { this.index = _index, _index++; if (this._index >= this._count) { if (loop) this._index = 0; else { _index--; stop(); } event(Event.COMPLETE); } } }  这里刚开始渲染最后一帧时,就会发出complete。也就是...

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