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

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

331. 在Unity中导出拖尾系统(JavaScript-3D基础(JS)-LayaAir3D之拖尾系统) [ 58%]

...载拖尾 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

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

...载拖尾 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

333. UI界面加载有哪些回调方法可用 [ 58%]

...用 Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); 类似于this.onLoaded函数,还有哪些生命周期相关的回调呢。 我想在UI完全加载完毕后,完成一些init操作,this.onLoaded方法中无法获取采用相对布...

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

334. 富文本使用图集 [ 58%]

...s: ani 这是我哪里用的不对吗?   Laya.loader.load("res/1.json", Handler.create(this, createAnimation), null, Loader.ATLAS);  public function createAnimation():void         {             var appendHtml:HTMLDivElement=new HTMLDivElement();             appendHtml.inn...

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

335. Panel滚动条滑块位于最下方 [ 58%]

...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

336. List选中项下滚会变 [ 57%]

...this.sList.selectEnable = true;//列表项是否可选 // this.sList.selectHandler = Laya.Handler.create(this,this.onSelect,null,false); this.sList.mouseHandler = new Laya.Handler(this,this.onMouse);//鼠标事件响应 } Laya.class(ServerListView,"ServerListView",_super); var _proto_ = ServerListVi...

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

337. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 57%]

...如果设置为true,则点击空白区域可以穿透过去。” 2.Laya.Handler 我在处理技能的时候用了对象池,其中类有对handler的持有,再次使用时发现数据不对了,查找很久才发现handler调用了recover,被对象池再次生成的对象引用覆盖了如...

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

338. 加载一个txt文件 getRes出来类型为string 能转换成数组吗 [ 57%]

...来类型为string 能转换成数组吗 Laya.loader.load("res/text.txt", Handler.create(this, onAssetLoaded1), null, Loader.TEXT); var pic1 = Loader.getRes("res/2D特效/text.txt"); console.log(typeof pic1); 输出的类型为string 2017-06-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

339. Laya 绑定显示内容到骨骼动画 [ 57%]

...    this.__bind.load(GamePath.single.getSpinePath("tank_blue.sk"),Laya.Handler.create(this,this.testLoadComplete));   }      private __bind:BindSkeleton;     private testLoadComplete():void{          let source:BindSource=new BindSource("gongji");         source.gr...

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

340. 小白求助,关于时间轴动画如何设置播放一次后消失? [ 57%]

...置播放一次后消失? Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { var tl = new Laya.Animation(); tl.loadAnimation("democesi.ani"); Laya.stage.addChild(tl); tl.play(); tl.pos(302,650); } 2018-01-17 添加评论 免费帖 --> 分享 微博...

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