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

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

1441. Laya.Tween.to 有没有监听值的变化的方法? [ 82%]

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

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

1442. Panel的滚动条皮肤问题 [ 82%]

...d(["images/scrollbar.png","images/scrollbar$bar.png"], Laya.Handler.create(this, panelContent)); function panelContent() { panel = new _this.Panel(); panel.size(1081, 507); panel.pos(153, 141); panel.zOrder = 21; panel.vScrollBarSkin = 'images/scrollbar.png'; panel.vScrollBar.elasticDistance = 100; ...

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

1443. Laya.Geolocation使用报错 [ 82%]

...bleHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, this.updatePosition), Laya.Handler.create(this, this.onError)); 报错如下: TypeError: Cannot set property 'enableHighAccuracy' of undefined 会出现无法找到Laya.Geolocation的各类属性错误,请问该如...

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

1444. 求助。资源加载问题,按照官方demo出现问题 [ 82%]

...tion 具体代码如下:    Laya.Sprite3D.load(url, Laya.Hander.create(this, this.onLoadComplete)) (不会报错)    Laya.loader.create(url, Laya.Hander.create(this, this.onLoadComplete))(会报错)   private onLoadComplete(){     const scene = new Laya.Scene3D()     Laya.stage.addChild(...

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

1445. TiledMap地图添加至Panel中不显示! [ 82%]

...大大看看, 地图的生成是按官方案列写的 添加方法如下 this.addChild(this.tiledMap.mapSprite()); 2017-10-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Monica - 知识达人 赞同来自: ...

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

1446. 连续读取多个本地json文件 [ 82%]

...("读数据"); Laya.loader.load("Json/shopLevel.json", Laya.Handler.create(this, this.shopJsonLoaded), null, Laya.Loader.JSON); Laya.loader.load("Json/menu.json", Laya.Handler.create(this, this.menuJsonLoaded), null, Laya.Loader.JSON); } //读取商店等级配置表 shopJsonLoaded( ) { let json = L...

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

1447. radioGroup设置labels后,每个radio的icon皮肤无法显示了 [ 82%]

...p();          dialog.btn_question_dialog_next.on(Laya.Event.CLICK, this, onNext); dialog.radioGroup_question.labels = "如果资源未加载,则先加载资源,\n加载完成后应用于此对象。,"+"如果资源未加载,则先加载资源,\n加载完成后应用于此对象。,"+...

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

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

...显示的index单元格位置会有偏移,怎么控制单元格的位置 this._list.tweenTo(this._list.page, 500, isFresh ? Laya.Handler.create(this, this.refresh) : null);核心就这句,this._list.page在滑动的距离达到某个值时,就会调用,翻到下一页,左右翻页按钮去...

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

1449. 自己创建的box作为tab,为啥没有点击事件啊? [ 82%]

...400); Laya.loader.load("res/atlas/template/comp.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() {     Laya.class(MyBoot, "MyBootClass", MyPage2UI);     var UI = new MyBootClass();     Laya.stage.addChild(UI); } function MyBoot() {     MyBoot....

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

1450. laya2 物理引擎好多问题 [ 82%]

...? onTriggerEnter(e:Laya.RigidBody):void{  var cil:Laya.CircleCollider=this.owner.getComponent(Laya.CircleCollider); var rig:Laya.RigidBody=this.owner.getComponent(Laya.RigidBody); cil.enabled=false; rig.enabled=false; var self:Laya.Sprite= this.owner as Laya.Sprite; var ni:Laya.Animation=new Laya...

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