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

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

661. 在Unity中导出拖尾系统(TypeScript-3D基础(TS)-LayaAir3D之拖尾系统) [ 60%]

...载拖尾 Laya.Sprite3D.load('LayaScene_tst/Conventional/Sphere.lh',Laya.Handler.create(this,function(sp){ //将加载的拖尾添加给示例盒子 box.addChild(sp); //为了体现效果,我们移动盒子和摄影机观察效果 Laya.timer.frameLoop(1,this,function(){ //使用差速来体现移...

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

662. list里的tweenTo(index)方法 为什么按下鼠标快速向某方向滑动的情况下想要显示的index单元格位置会有偏移,怎么控制单元格的位置 [ 60%]

...单元格的位置 this._list.tweenTo(this._list.page, 500, isFresh ? Laya.Handler.create(this, this.refresh) : null);核心就这句,this._list.page在滑动的距离达到某个值时,就会调用,翻到下一页,左右翻页按钮去调用没问题,位置都是正确的,只有在按...

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

663. 材质动画的使用(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 60%]

....load("res/threeDimen/scene/materialScene/Conventional/layaScene.ls", Laya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera") as Laya.Camera; camera.addComponent(CameraMoveScript); })); ```

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

664. Laya.loader.load 加载场景报错 [ 60%]

Laya.loader.load 加载场景报错 Laya.loader.load( 模型url, Laya.Handler.create(this, function(){ this.scene = Laya.loader.getRes(模型url); Laya.stage.addChild(this.scene); }),null, null, 1, true, "scene1"); 执行后,浏览器报 : laya.core.js:13290 Uncaught TypeError: node._setParent ...

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

665. layabox 网络加载异常慢 [ 60%]

...超过秒级,有时会20几秒,用的加载方式是 Laya.loader.load( url,Handler.create(this,comFun),null,Loader.IMAGE,0); 这个等待时间有没有大牛搞过啊   附件 : --> 2018-07-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

666. 图片显示好奇怪 [ 60%]

...c function LayaAirDemo() { Laya.init(800,800); Laya.loader.load('logo.png',Handler.create(this,onLoaded)); } private function onLoaded():void { var texture:Texture=Loader.getRes('logo.png'); var sp:Sprite=new Sprite(); sp.graphics.clear();//把上次的绘制清除 sp.graphics.drawTexture(texture); ...

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

667. Panel滚动条滑块位于最下方 [ 60%]

...oader.load([{url:"res/atlas/comp.json",type:Loader.ATLAS},{url:"bg2.png"}],Handler.create(this,onCom)); } private function onCom():void { var img:Image=new Image(); img.skin="bg2.png"; panel=new Panel(); panel.vScrollBarSkin="comp/vscroll.png"; panel.width=300; panel.height=300; Laya.stage.addChild(...

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

668. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 60%]

...ar xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,completeHandler); xhr.once(Laya.Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); function completeHandler(data){ //加载完成返回的data是arraybuffer; //.......这里处理我们加密的图...

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

669. mac系统下 TypeScript 语言 ,声音无法播放? [ 60%]

...回复 纪龙 赞同来自: Laya.loader.load("res/sounds/light.mp3", Laya.Handler.create(this, ()=>{               console.log("load light.mp3");               Laya.SoundManager.playMusic("res/sounds/light.mp3");                 Laya.SoundManager.playSo...

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

670. 引擎的text类中有没有直接读取Json文件的函数 [ 60%]

...ixueying 赞同来自: package { import laya.net.Loader; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(500,400); Laya.loader.load("unpack.json",Handler.create(this,onLoaded),null,Loader.JSON); } private function onLoaded():void { var json:JSON=Laya.l...

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