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

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

121. 版本管理swf找同名的Json文件发现找不到 [ 65%]

...配的是Map192e06db1ff.json MovieClip类是找Map192622077fd.json export class MMovieClip extends Laya.MovieClip{         constructor(){             super();         }         //初始化预加载数据         public m_initData(url:string,atlas:boolean,a...

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

122. 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

123. 解析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

124. 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

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. 对象池 · LayaAir3.3 · 引擎文档 · 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_文档 发布时间: 20251010

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

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

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

129. 调用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

130. 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