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

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

1411. 3d粒子只要勾了looping,每次播放完开始下一次循环的时候都会闪烁一下 [ 46%]

...e3D.load("res/LayaScene_gamescene/Conventional/chest01.lh", Laya.Handler.create(this, function(sp:Laya.Sprite3D):void { console.log("111111111111111111111") var target: Laya.Sprite3D = scene3d.addChild(sp) as Laya.Sprite3D; camera.convertScreenCoordToOrthographicCoord(pos, transl...

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

1412. laya.d3.core.material.SkyProceduralMaterial [ 46%]

...oneTo(destObject:*):void 克隆。 BaseMaterial load(url:String, complete:Handler):void[static] 加载材质。 BaseMaterial setShaderName(name:String):void 设置使用Shader名字。 BaseMaterialProtected Methods Show Inherited Protected Methods Show Inherited Protected Methods MethodDefined By...

来源: Laya2.0_api 发布时间: 20190513

1413. laya.sprite精灵无缝拼接地图,会出现黑线跟白线,使用laya的2.0.1beta版本 [ 46%]

...256*256大小的地图块 this.isShow = true; Laya.loader.load(name,Laya.Handler.create(this,this.drawImg)); }  drawImg():void { var texture:Laya.Texture = Laya.loader.getRes(this.name); this.texture = texture; }  clearImage(): void{ if (this.name != "") { this.isShow = false; Laya.Loader.clearTex...

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

1414. Laya.SoundManager.playSound()问题,任务不是当前标签停止播放,当任务回到当前标签页,不能恢复播放 [ 46%]

...dChannel: Laya.SoundChannel = Laya.SoundManager.playSound(url, loops, Laya.Handler.create(this, () => { resolve(soundChannel); }), soundClass, startTime); }); } 我使用Promise封装了一下音效播放,正常使用await播放没啥的问题,可以做同步异步转换,出问题是的使...

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

1415. laya.ui.View_API3.0 [ 46%]

...ers node: Node Returns boolean loadImage loadImage(url: string, complete?: Handler): Sprite Inherited from Text.loadImage Defined in laya/display/Sprite.ts:1578 加载并显示一个图片。相当于加载图片后,设置texture属性 注意:2.0改动:多次调用,只会显示一个图片...

来源: Laya3.0_api 发布时间: 20231115

1416. laya.ani.bone.Skeleton [ 46%]

...型是否是鼠标事件。 EventDispatcher  load(path:String, complete:Handler = null, aniMode:int = 0):void 通过加载直接创建动画 Skeleton loadImage(url:String, complete:Handler = null):Sprite 加载并显示一个图片。相当于加载图片后,设置texture属性 注意:2.0改...

来源: Laya2.0_api 发布时间: 20190513

1417. 隐藏默认的虚拟键、屏蔽APP窗口弹出脚本错误信息 的问题 [ 46%]

...newhfh2.json",type: Laya.Loader.ATLAS}, ]; Laya.loader.load(resArray, Laya.Handler.create(null, LoadResComplete)) } function LoadResComplete() { //背景颜色 Laya.stage.bgColor = "#ffffff"; // var bgs = new laya.display.Sprite(); // bgs.loadImage("res/bg.png"); //Laya.stage.addChild(bgs); //Laya.s...

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

1418. 纹理集包含多个动作的时候按照技术文档写出来的不能正常播放呢? [ 46%]

...t(); } private function init():void { Laya.loader.load("../res/zy/zy.json",Handler.create(this,onLoadedSource),null,Loader.ATLAS); } private function onLoadedSource():void { roleAni = new Animation(); playActions(); }   2、你打包图集的时候,.json文件的prefix键是没有值的,这个...

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

1419. laya.ui.Slider [ 46%]

...直方向中心线的距离(以像素为单位)。 Component  changeHandler : Handler 数据变化处理器。 默认回调参数为滑块位置属性 value属性值:Number 。 Slider comXml : Object XML 数据。 Component customRenderEnable : Boolean[write-only] 设置是否开启自定...

来源: laya_api 发布时间: 20170929

1420. List组件拖动浏览时item会出现重叠的现象 [ 46%]

...可选以及选中后可做的操作 list.selectEnable = true; list.selectHandler = new Handler(this, this.onSelect); // 滚动条的橡皮筋操作:回弹时间及弹性距离 list.scrollBar.elasticBackTime = 200; list.scrollBar.elasticDistance = 5; Laya.stage.addChild(list); // 设置数据项...

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