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

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

271. 3D模型无法用Tween类吗 [ 75%]

...ion;Laya.Tween.to(box.potOld,{     x:1     ,y:2     ,update:new Laya.Handler(box,function(){         this.transform.position = this.potOld;     }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){     console.log("complete"); }),ConstValue.animation...

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

272. 在加载多个资源的时候,加载进度异常 [ 75%]

..."res/atlas/f3.atlas", "res/atlas/f4.atlas", "res/atlas/f5.atlas"],   Laya.Handler.create(this, function(){ }),  Laya.Handler.create(this, function(e){    console.log(e) } , Laya.Loader.ATLAS);   此时进度e的值只有一个数0.41 ,不会从0到1,这是什么原因? 2018-01-01 添加...

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

273. 3d中 缓动往一个点转向并移动的问题 [ 75%]

.....             //其中参数2中,有个update属性,值为Handler,即为动画执行时的回调,该回调中,可获取当前属性对象的属性值             Laya.Tween.to(countdown, {                 value: z + 2, update: new Laya.Handler(this,...

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

274. list的_dataSource问题。 [ 75%]

list的_dataSource问题。 list.renderHandler = new Handler(this, this.onInitItem); list.array=[{a:1},{a:2}];   private onInitItem(item,index){}   在 onInitItem 中怎么得到他的数据?list.array 里面的那个 {a:1}   我看源码中有 _dataSource ,但是方法不是公开的。要...

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

275. list的selectHandler属性连续点击同一个item不能重复接收事件 [ 75%]

list的selectHandler属性连续点击同一个item不能重复接收事件     使用的是引擎示例中的代码:https://layaair.ldc.layabox.com/demo/?category=2d&group=UI&name=List         list.selectEnable = true;     list.selectHandler = new Handler(this, onSelect);    ...

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

276. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 75%]

...is.atlas','imgdebris/p1_slj.png',]; // this.loader.load(this.urls[0], Laya.Handler.create(this, this.onAssetloaded)); this.loader.load(this.urls,this.Handler.create(this,this.onAssetloaded),this.Handler.create(this, this.onLoading, null, false)); }, onAssetloaded : function(texture){ this.tl = new L...

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

277. 一个关于laya.display.scene不成熟的小建议 [ 75%]

... 建议把scene里的静态方法: static load(url: string, complete?: Handler, progress?: Handler): void; static open(url: string, closeOther?: boolean, param?: any, complete?: Handler, progress?: Handler): void; static close(url: string, name?: string): boolean; static closeAll(): void; static s...

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

278. 数据、图片路径已加载到数组里面,要如何将图片路径赋值给skin?然后显示到list? [ 75%]

...享 微博 QZONE 微信 andyskaura 赞同来自: this.otherItem_list.mouseHandler = new Handler(this,otherItem_listRender,null,false);  你试一下在回调otherItem_listRender(){ .skin="" } 里面直接给skin赋值,我平常都是这样用的。 2018-03-21 0 2 分享 微博 QZONE 微...

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

279. 屏幕适配-自动竖屏 [ 75%]

... = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.st...

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

280. 屏幕适配-自动横屏 [ 75%]

... = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.st...

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