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

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

311. List翻页效果 [ 73%]

...ctor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler = new Laya.Handler(this, this.onMouse) } onOpened(param: any) { sup...

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

312. 播放声音出错,求指教 [ 73%]

...======= function playbgm() { SoundManager.playMusic("comp/bgm.mp3", 1, new Handler(this, bgmComplete)); } function bgmComplete() { console.log("播放完成"); }   附件 : --> 2018-03-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

313. List翻页效果怎么实现 [ 73%]

...ctor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler = new Laya.Handler(this, this.onMouse) } onOpened(param: any) { sup...

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

314. 资源回收的清理不干净的bug [ 73%]

... Laya.Scene3D;         Laya.Sprite3D.load("Models/Ball.lh", Laya.Handler.create(this, function(sp){             for(var i=0; i<3; i++){                 var ball = myscene.addChild(sp.clone());                 ball.name = i.toString();...

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

315. list中加的button不能接收点击事件 求一个list中加button的demo [ 73%]

... true;         list.itemRender = BagItem;         list.renderHandler = new Handler(this, this.updateListItem);         list.selectHandler = new Handler(this, this.onSelect);                 this.addChild(list);         list.array = data;       }     ...

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

316. 射线检测-碰撞器混合 [ 73%]

...", clas: Laya.Sprite3D, priority: 1 } ]; Laya.loader.create(resource, Laya.Handler.create(this, onLoadFinish)); function onLoadFinish() { this.scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/ColliderScene/ColliderDemo.ls")); //初始化照相机 this.camera = this.scene.addCh...

来源: Laya_示例 发布时间: 20251209

317. l微信开放域无法显示,但是可以正常传数据 [ 73%]

...//加载一个json和图集 Laya.loader.load(["res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); }));子域main.ts: import GameConfig from "./GameConfig"; import BigRan...

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

318. Skeleton动画销毁内存泄漏 [ 73%]

...问题,我大致复盘一下。 版本A: 1. new sk();sk.load("xx.sk",handler()); 2.销毁直接使用sk.destroy();sk=null; 这时在chorme上就能看到有内存泄漏,会多出来一个templet类型的数据,和官方大佬沟通之后产生了版本B。 版本B:1.new templet();tem...

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

319. 给以个对象绑定两个on方法为什么只能执行一次 ? [ 73%]

...     Laya.Tween.to(this.obj,{scaleY:1,scaleX:1},10,Laya.Ease.backIn,Laya.Handler.create(this,this.backEdHd));         }         this.init = function(){             Laya.Tween.to(this.obj,{scaleY:1.05,scaleX:1.05},100,Laya.Ease.backOut,Laya.Handler.create(this,this.clickEnd));     ...

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

320. ProgressBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 73%]

...{ import laya.display.Stage; import laya.ui.ProgressBar; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_ProgressBar { private var progressBar:ProgressBar; public function UI_ProgressBar() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居...

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