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

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

41. 官方提供的关系链代码执行报错,是不是wx的sharedCanvas不是Laya的canvas导致的问题 [ 68%]

...esource.Texture extends laya.events.EventDispatcher var Texture=(function(_super){ function Texture(bitmap,uv){ /**图片或者canvas 。*/ //this.bitmap=null; /**UV信息。*/ //this.uv=null; /**沿 X 轴偏移量。*/ this.offsetX=0; /**沿 Y 轴偏移量。*/ this.offsetY=0; /**原始宽度(包...

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

42. 我想动态改自定义shader里的值,应该怎么写?? [ 68%]

...erial.js:34 (anonymous) function CustomMaterial() {     CustomMaterial.__super.call(this);     this.setShaderName("CustomShader"); }   Laya.class(CustomMaterial, "CustomMaterial", Laya.BaseMaterial);   CustomMaterial.DIFFUSETEXTURE = 1; CustomMaterial.NORMALTEXTURE = 2; CustomMaterial.ALPHATES...

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

43. 销毁有声音的spine动画,skeleton中的_onAniSoundStoped有时会报undefined错误 [ 67%]

...*停止播放     */     __proto.stop=function(){         _super.prototype.stop.call(this);         /**     *停止播放。     */     __proto.stop=function(){         if (this.completeHandler)this.completeHandler.run();     } 猜测bug原因如下:...

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

44. Cannot read property 'toDefault' of undefined报错是什么原因 [ 66%]

...ckingScene", Laya.Scene); function MousePickingScene() { MousePickingScene.super(this); this.camera = new Laya.Camera(0,0.1,100); this.addChild(this.camera); this.camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; this.skyBox = new Laya.SkyBox(); this.camera.sky = this.skyBox; this.skyBox.textureCube...

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

45. loadLib("libs/laya.device.js"); native上会随机宕 [ 66%]

...detroyChildren===void 0)&& (detroyChildren=true);         _super.prototype.destroy.call(this,detroyChildren);         // native会崩溃         // this.videoElement.removeEventListener("abort",Video.onAbort);         // this.videoElement.removeEventListener("...

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

46. bug:laya.Scene.destroy [ 66%]

... (destroyChild===void 0)&& (destroyChild=true); this._idMap=null; _super.prototype.destroy.call(this,destroyChild); var list=laya.display.Scene.unDestroyedScenes; for (var i=0,n=list.length;i < n;i++){ if (list[i]===this){ list.splice(i,1); return; } } }这里改动了同一个数组,...

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

47. TestArea为什么没有读取txt里的文本内容? [ 64%]

...同来自: 实验了下,将TextPageUI.surper(this);修改成TextPageUI.__super.call(this);就可以了。 2018-12-25 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 鱿鱼小丝 相关问题 文本如何自动换行 关于文本遮挡 ...

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

48. UI-List [ 63%]

... var Image = Laya.Image; var WID = 373, HEI = 85; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box); // 主要逻辑代码 var Stage = Laya.Stage; var L...

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

49. 如何调用父类get、set方法? [ 62%]

...的链接 提交 4 个回复 ymsdandan 赞同来自: 你试下LoginView.__super.call(this)   ,   注意,是2个下划线 2017-11-08 0 3 分享 微博 QZONE 微信 caochangli 赞同来自: 官方没人回复下吗? 2017-11-08 0 0 分享 微博 QZONE 微信 ymsdandan 赞同来自: 你把这个...

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

50. 新手请问下如何开启Laya3D的physics [ 61%]

...} btColObj.setCollisionFlags(flags); this._nativeColliderObject=btColObj; _super.prototype._onAdded.call(this); }报错的意思是 physics3D是undefine,是需要在哪儿初始化一下物理吗 2019-03-21 0 0 分享 微博 QZONE 微信 happyfire 赞同来自: 自己研究中,好像是物理...

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