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

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

141. tiledMap问题,getTileProperties获取地图属性不能获取到 [ 65%]

... = 'res/tiled/map.json';  /**地图 */ map: Laya.TiledMap; constructor(){ super(); Laya.loader.create(this.MAP_URL, new Laya.Handler(this, this.onComplete)) }  private onComplete(){ this.map = new Laya.TiledMap(); this.map.createMap(this.MAP_URL, new Laya.Rectangle(0,0,Laya.stage.width, Laya.stage...

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

142. 调用ui,new的时候出现Uncaught TypeError: Cannot read property 'call' of undefined [ 65%]

...: var Test = (function(_surper){    function Test(){         Test.super(this);     };     Laya.class(Test, "Test", _surper);     return Test;      })(ui.TestUI);     报错Uncaught TypeError: Cannot read property 'call' of undefined     at Function.<anonymous> (laya.core.j...

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

143. IDE时间轴动画帧数乱序导致的bug [ 65%]

...导致的bug class FrameAnimation extends AnimationBase { constructor() { super(); if (FrameAnimation._sortIndexFun === null) { FrameAnimation._sortIndexFun = MathUtil.sortByKey("index", false, true); } }   FrameAnimation初始化时_sortIndexFun 方法没有被赋值   导致_calculateKeyFrames...

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

144. Laya3D 中如何解决3D模型上添加文本的问题,类似Unity中的3DText [ 65%]

... class ShopTitle extends Laya.Script{ public title: string; constructor(){ super(); } public _initialize(owner: Laya.Sprite3D): void { super._initialize(owner); var sprite3D = this.owner as Laya.MeshSprite3D; var sprite3DMat = new Laya.StandardMaterial(); sprite3DMat.cull = Laya.BaseMaterial.CULL_NO...

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

145. 解析sk资源报错 [ 64%]

...     public function CombatRole()         {             super();             initView();         }                  private function initView():void         {             _templet = new Templet();             _templet.on(Event.COM...

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

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

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

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

147. Shake.instance.start(5, 500);这里面的5和500什么意思? [ 64%]

...名字带$是什么意思? Laya.class是什么意思 layabox js中 的__super,call()是什么意思 这个写法是什么意思,能否解释一下,谢谢 camera的orthographicVerticalSize属性是什么意思? 文档上写的太简洁了! 控制台显示node --debug-brk=27489 --nolazy Debu...

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

148. UI-List [ 64%]

... 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_示例 发布时间: 20240930

149. Clip组件Bug:Play方法无法结束循环 [ 64%]

...rows: number, interval?: number, isLoop?: boolean) {         super(path, cols, rows);         if (interval != void 0) {             this.interval = interval;         }          this.on(Laya.Event.COMPLETE, this, () => {       ...

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

150. list中的item类中的button注册事件不响应 是怎么回事呢 ?可以帮帮我解答下吗 [ 63%]

...rivate skin_lock:Laya.Image; private skin_inUse:Laya.Image; constructor(){ super(); this.size(Item.WID, Item.HEI); this.initBuild(); this.skin_btn_use.on(Laya.Event.CLICK,this,this.onSkinBtnUseClick) } private onSkinBtnUseClick(){ console.log("使用"); }   //btn 有宽高 2018-08-28 添加评论 ...

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