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

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

401. 加载-加载序列 [ 94%]

...der.maxLoader = 1; Laya.loader.load("res/apes/monkey2.png", Handler.create(this, this.onAssetLoaded), null, null, 0, false); Laya.loader.load("res/apes/monkey1.png", Handler.create(this, this.onAssetLoaded), null, null, 1, false); Laya.loader.load("res/apes/monkey0.png", Handler.create(this, this.on...

来源: Laya2.0_示例 发布时间: 20260303

402. 区块地图-等角地图 [ 94%]

...OWALL; Laya.stage.bgColor = "#232628"; createMap(); Laya.stage.on("click", this, onStageClick); })(); function createMap() { tiledMap = new TiledMap(); tiledMap.createMap("../../res/tiledMap/isometric_grass_and_water.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(thi...

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

403. Laya.loader.load("", Laya.Handler.create(this, this.console)); [ 94%]

Laya.loader.load("", Laya.Handler.create(this, this.console)); 为什么会打印两次 附件 : --> 2018-12-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 加载两次 2019-05-11 0 0 ...

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

404. 关于设置动画轴心点问题 [ 94%]

...aracters/Blue_JumpLeft_Smile.png"], ActionType.JUMP_LEFT); // 创建动画 this.animation = new Laya.Animation(); this.animation.interval = 150; this.animation.play(0, true, ActionType.MOVE_RIGHT); this.addChild(this.animation);   由于动画不能设置锚点,我想设置动画图片宽度/2为...

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

405. 执行了这个 Laya.timer.clear(this, this.onLoop);还是会继续执行onLoop [ 94%]

执行了这个 Laya.timer.clear(this, this.onLoop);还是会继续执行onLoop 请问是什么问题 2018-04-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 w1114367261 赞同来自: 你看一下是否是你...

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

406. 续飞机大战 [ 94%]

...und = (function (_super) { function BackGround() { BackGround.__super.call(this); //创建背景1 this.bg1 = new Laya.Sprite(); //加载并显示背景图 this.bg1.loadImage("war/background.png"); //把背景1放到容器内 this.addChild(this.bg1); //创建背景2 this.bg2 = new Laya.Sprite(); //...

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

407. List 组件做的手风琴Demo [ 94%]

...e(100,300);         list.repeatX =1;         list.repeatY =this.arr.length;         list.itemRender =Item; //Item 为继承BOX类         list.vScrollBarSkin ="";         Laya.stage.addChild(list);         list.array =this.arr;         list.ren...

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

408. Ts简单对象池 [ 94%]

...;Laya.MeshSprite3D>}={} constructor() { } static getInstance() { return this._instance || (this._instance = new PoolManager()) }  //初始化 //加载到内存中创建出来之后添加到这里面 public InitPool(key:number,MeshSprite:Laya.MeshSprite3D){ //初始化id对应对象池, 第一...

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

409. runTime使用(TypeScript-IDE篇(TS)-组件化开发相关) [ 94%]

...直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果。而script脚本获取只能通过this.owner.getChildByName("xxx") 等方式获取节点** - **建议:如果是页面级的逻辑,需要频繁访问页面内多个...

来源: Laya2.0_文档 发布时间: 20210715

410. 播放骨骼动画 [ 94%]

...么优化。 private factory:Laya.Templet; private avatar:Laya.Skeleton; this.factory = new Laya.Templet(); this.factory.on(Laya.Event.COMPLETE, this, this.parseComplete); this.factory.on(Laya.Event.ERROR, this, this.onError); this.factory.loadAni("sp/aa.sk"); this.avatar = this.factory.buildArmatur...

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