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

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

361. 请问laya有没有类似翻页容器(pageView)的组件? [ 71%]

...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_社区 发布时间: 20170215

362. JSON文件加载成功后,怎么解析成Object对象 [ 71%]

...kage { import laya.display.Text; import laya.net.Loader; import laya.utils.Handler; /** * ... * @author OttoChen */ public class TestMain { private var txt:Text = null; public function TestMain() { Laya.init(800, 800); txt = new Text(); txt.mouseEnabled = false; txt.overflow = Text.SCROLL; txt.size(...

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

363. 用了Sprite3D.instantiate方法,在iPhone6上性能降低了80% [ 71%]

...lone() as s3d;//s3d.instantiate(x.s3ds[id]); }   static loads3d(id, path, handler=null):void{   s3d.load(path, Laya.Handler.create(null, function(sp){ x.s3ds[id] = sp; if(handler)handler.loadeds3d(id, sp); })); }  我首先用loads3d方法加载所有的.lh文件,然后用Sprite3D.instantiate...

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

364. 为什么list不能滑动,怎么让list滑动 [ 71%]

...极限距离。  this.gradeList.selectEnable = true; this.gradeList.selectHandler = new Laya.Handler(this, this.onSelect) this.gradeList.renderHandler = new Laya.Handler(this, this.updateItem) } 2019-05-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

365. 没有预加载的图片怎么获取width和height ? [ 71%]

...d(["../laya/assets/comp/image.png","../laya/assets/comp/vscroll.png"],Laya.Handler.create(this,onAssetLoad));      } function onAssetLoad() {      older = new Laya.Sprite();      older.loadImage("../laya/assets/comp/image.png");     Laya.stage.addChild(older);     console.log(older...

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

366. 在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 [ 71%]

...le Main { import Sprite = Laya.Sprite import Texture = Laya.Texture import Handler = Laya.Handler export class MaskDemo { private Res: string; private img: Laya.Image; constructor() { //Laya.init(400, 640, Laya.WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" Laya.Stat.show() //资源...

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

367. LayaAir 和LayaAirIDE的区别? [ 71%]

...次方图集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 LayaAir 3D 有提供 3D 物理引擎功能吗? LayaAir 2.0 TS版编译出错GameConfig跟创建项目时生成的内容不一致了 Laya的Scene和View什么区别? 在初始...

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

368. 组件Tab双图 [ 71%]

...简单的富文本 为什么官网例子里,UI组件的事件都用new Handler,而资源加载用Handler.create() 问题状态 最新活动: 2018-01-16 19:20 浏览: 825 关注: 2 人

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

369. 再问:tween对象的回收利用 [ 71%]

...props 变化的属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。 * @param duration 花费的时间,单位毫秒。 * @param ease 缓动类型,默认为匀速运动。 * @param complete 结束回调函数。 * @para...

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

370. 重复使用Laya.Sprite3D.load加载同一个lh类型的资源,发现第二次加载到的资源是无效的 [ 71%]

...现第二次加载到的资源是无效的 Laya.Sprite3D.load(path, Laya.Handler.create(this, this.loadCompleted));   public loadCompleted(sp:Laya.Sprite3D):void {     this._loaded = true;              let useObject:Laya.Sprite3D = sp.getChildAt(0) as Laya.Sprite3D; } 重...

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