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

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

391. 打APK后加载unity导出资源出错 [ 56%]

...th+"地图");         }         Sprite3D.load(path,Handler.create(null,function(sp){             if(_$this.PRINT_LOG){                 console.log("加载单张地图完成"+curIndex);             }             sp.active=false; 在s...

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

392. sprite加载图片,如果设置其高固定,宽等比? [ 56%]

...置其高固定,宽等比? $pic.loadImage(_pic, 14, 192, 0, 0, Handler.create(this, function(){     $pic.height = 246;     $pic.scaleX = $pic.scaleY;     trace("$pic.width:" + $pic.width); })); 这样处理后,图片高度还是100%,并不是246啊 2017-05-03 添加评论 免费帖 -->...

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

393. timeline播放完成Bug [ 56%]

...ayaair2.ldc2.layabox. ... 3B%3B Laya.loader.load(monkey1Path, Laya.Handler.create(this, function() { let monkey = Laya.loader.getRes(monkey1Path); let ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.graphics.drawTexture(monkey, 0, 0); var tl = new Laya.TimeLine(); tl.once('complete', this, fu...

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

394. Animation创建和销毁的问题 [ 56%]

....loader.load(["res/fish_1/stand.atlas","res/fish_1/attack.atlas"], Handler.create(this, this.onAnimAtlasLoaded)); } } private function onAnimAtlasLoaded():void { testAnim1 = new Animation(); testAnim1.loadAnimation("res/fish_1/fish_1.ani"); Laya.stage.addChild(testAnim1); testAnim1.play(0,true,"stan...

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

395. 时间轴动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 56%]

...onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas", Laya.Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```javascript //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("TimeLine.ani"); ``` 第三步...

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

396. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 56%]

...item.size; items.push(item); var progressHandler = progress ? Laya.Handler.create(null, loadProgress, [item], false) : null; var completeHandler = (complete || progress) ? Laya.Handler.create(null, loadComplete, [item]) : null; this.load(item.url, completeHandler, progressHandler, item.type, item.pr...

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

397. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 56%]

..."res/atlas/comp.atlas", type:Loader.ATLAS}); Laya.loader.load(res, Handler.create(null, this.__onLoaded)); } private __onLoaded(): void { Laya.stage.addChild(new Test()); } } new Entry();   Test.ts import Sprite = Laya.Sprite; class Test extends Sprite{ constructor(){ super(); this._initView(); } p...

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

398. List 组件列表渲染异常 [ 56%]

... 1) 数据无法渲染第二项以及索引异常是因为 list 的Hanlder.create没有设置once为flase。 2) 图片的问题解释起来有些复杂,简单来说 2.1) 因为有一个默认的skin,所以会加载渲染 2.2) 因为传过去的地址不存在,所以不会默认覆盖掉,这...

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

399. 请问怎么制作一个layabox js版本的加载效果 [ 56%]

...ya.loader.load(["./comp/progress.png", "./comp/progress$bar.png"], Handler.create(this, onLoadComplete)); } console.log(1); Laya.class(Loadings,"Loadings",_super); function onLoadComplete() { progressBar = new ProgressBar("./comp/progress.png"); progressBar.width = 400; progressBar.x = (Laya.stage.w...

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

400. layabox打包有问题用cordova打包没问题 [ 56%]

...------------loadBaseConfAfterGame"); Laya.loader.load( temploaArr, Handler.create(this,loadAllBaseConfFun,[_afterGameConfigArr])/*,progressHandler*/); } private function loadAllBaseConfFun(configURLArr:Array):void { trace("-------------loadAllBaseConfFun------------"); } loadconfig这个方法有...

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