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

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

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

...    import { ui } from '../ui/layaMaxUI'; /**主界面 */ export default class Main extends ui.mainUI { /**地图链接 */ MAP_URL:string = 'res/tiled/map.json';  /**地图 */ map: Laya.TiledMap; constructor(){ super(); Laya.loader.create(this.MAP_URL, new Laya.Handler(this, this.onComplete)) } ...

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

122. 解析sk资源报错 [ 65%]

...a.ani.bone.Templet;     import laya.events.Event;          public class CombatRole extends BaseRole     {         private var _templet:Templet;         public function CombatRole()         {             super();             initView();         } ...

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

123. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 65%]

...int对象父容器rotation旋转之后检测不了碰撞   附上代码  class FishPonds extends Laya.Sprite { public are: Laya.Rectangle = new Laya.Rectangle(0, 0, 60, 30); constructor() { super(); var _fish: Laya.Sprite = new Laya.Sprite() _fish.graphics.drawRect(this.are.x, this.are.y, this.are...

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

124. 对象池 · LayaAir3.0文档 · LAYABOX [ 65%]

...的类。 * @return 此类型标识的一个对象。 */ static getItemByClass<T>(sign: string, cls: new () => T): T { if (!Pool._poolDic[sign]) return new cls(); var pool = Pool.getPoolBySign(sign); if (pool.length) { var rst = pool.pop(); rst[Pool.POOLSIGN] = false; } else { rst = new cls...

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

125. laya 的list组件,如果有多页信息,怎么实现翻页丫?? [ 65%]

..."../data/ConfigInfo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(thi...

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

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

...,现在有插件开发,修改源码会有问题): export default class GifView extends Laya.Clip {     /**      *开始帧位置      *      * @private      * @memberof GifView      */     private frameIndex = 0;     /**      *结束帧...

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

127. spine动画放大后,遮罩显示不正常 [ 64%]

...置见下图代码和附件DEMO中的TestScene.scene文件 export default class GameUI extends Laya.Scene { constructor() { super(); //设置单例的引用方式,方便其他类引用 GameUI.instance = this; //关闭多点触控,否则就无敌了 Laya.MouseManager.multiTouchEnabled = false; //...

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

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

...){    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.js:127)     at new Test (Test.j...

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

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

...ton注册事件不响应 是怎么回事呢 ?可以帮帮我解答下吗 class Item extends Laya.Box{ public static WID: number = 147; public static HEI: number = 190; private skin_progress_chip:Laya.ProgressBar; private skin_img:Laya.Image; private skin_chipNum:Laya.Text; public skin_btn_use:Laya...

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

130. 2d帧动画bug:编译运行会掉帧,编辑器不会掉帧,2.2.0版本以上都有这个问题 [ 64%]

... null) 改成 if (FrameAnimation._sortIndexFun == null)   代码如下: class FrameAnimation extends AnimationBase { constructor() { super(); if (FrameAnimation._sortIndexFun == null) { FrameAnimation._sortIndexFun = MathUtil.sortByKey("index", false, true); } }      2019-11-19 0 2 分享 微...

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