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

大约有 1,144 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0052 秒)

501. 1.5版本:3D Camera无法使用? [ 70%]

...请: 与内容相关的链接 提交 1 个回复 183*****755 赞同来自: this.scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; this.camera = (this.scene.addChild(new Laya.Camera(0, 1, 1000))) as Laya.BaseCamera; this.camera.transform.translate(new Vector3(0, 0, 500)); 这样用即可...

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

502. Laya中Button等组件lose skin的问题 [ 70%]

...hangeClips。 __getset(0,__proto,'skin',function(){         return this._skin;         },function(value){         if (this._skin !=value){             this._skin=value;             this.callLater(this.changeClips);             this._setStat...

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

503. 加上size设置后,精灵不能点击. [ 70%]

...lower2.png" : "img/flower3.jpg" img.loadImage(s); img.on(Laya.Event.CLICK, this, () => { img.y -= 10; }) img.pos(100, 300) Laya.stage.addChild(img) } function createFlower() { var f = new Laya.Sprite(); var r = Math.random(); var s = r > 0.66 ? "img/flower1.jpg" : r > 0.33 ? "img/flower2.pn...

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

504. Laya.loader.create 进度回调函数执行两次!!! [ 70%]

...数执行两次!!! Laya.loader.create("Main/SMain.ls",Laya.Handler.create(this,this.on3DComplete),Laya.Handler.create(this,this.onProgress,null,false)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%"); }   输出结果: 0.19186599730944645 0.52519...

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

505. 如何给Tab里的button设置点击事件? [ 69%]

...28 关注: 2 人 Y_Yao • 2017-05-16 10:26 function daoju() { daoju.super(this); this.Tab_ZM.selectHandler = new Laya.Handler(this, onSelect); } function onSelect(index) { console.log("当前选择的标签页索引为:" + index);); this.Tab_ZM.on(Event.CLICK,this,onDaoju(index)); } 想...

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

506. List滚动到底部事件 [ 69%]

...end',list,scrollBarHandler)   function scrollBarHandler(){         if(this.scrollBar.value == this.scrollBar.max){                 var that = this;                 setTimeout(function(){                      that.addItem("../../res/ui/listskins/5.jpg");          ...

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

507. 1.7.19beta版播放音乐异常 [ 69%]

1.7.19beta版播放音乐异常 if (this.gain.gain.setTargetAtTime){ this.gain.gain.setTargetAtTime(this._volume,this.context.currentTime,0);一跑起来就在这里异常 "Failed to execute 'setTargetAtTime' on 'AudioParam': Time constant must be a finite positive number: 0"   在chrome里调试...

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

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

...  }         let list = new Laya.List;         list.width = this.itemList.width;         list.height = this.itemList.height;         list.x = this.itemList.x;         list.y = this.itemList.y;         list.spaceY = 12;         list.vScrollBarSkin = ""...

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

509. ani 如何 更改某一帧的 skin ,, [ 69%]

... 更改某一帧的 skin ,, ani 如何 更改某一帧的 skin ,, this.saizi.play(0,false); this.saizi.on(Event.LABEL,this,function(){ this.saizi.skin="game/room_xinxibg.png"; }); 2017-10-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

510. 【简单跑酷--JS版】---Lv.6 终篇 [ 69%]

...码如下  (function () { /** * 血条 * */ function Hp(type){ //背景 this.bg = null; //进度条 this.bar = null; //最小值 this.MIN_VALUE = 0; //最大值 this.MAX_VALUE = 100; //值 this.value = 100; Hp.__super.call(this); this.init(type); } //能量类型 Hp.HP_TYPE_ENERGY = "hp_type_energy...

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