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

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

411. 给Laya.Browser.window添加监听事件导致页面加载不出来是怎么回事??? [ 70%]

...是怎么回事??? 类似这样的方式 Laya.Browser.window.on(Laya.Event.VISIBILITY_CHANGE, this, this.triggerExit); 整个页面一片黑…… 2018-02-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 La...

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

412. list ,增加item ,我想在末尾增加,但是每次都给我翻倍的增加,如何解决 [ 70%]

..._jiesan.png"); button.pos(300, 0); this.roombg.addChild(button); button.on(Event.MOUSE_DOWN, this, function (e) { list.addItem(1); }); function Item() { Item.__super.call(this); this.size(416, 270); this.text = new Text(); this.text.fontSize = 20; this.text.pos(12, 5); this.text.color = "#FF00FF"; t...

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

413. 代码创建精灵监听不到事件? [ 70%]

...e); var arr = {data: StorageRoom.map_storageData[0][0],tag:0}; box.on(Laya.Event.MOUSE_UP,this,this.onclick,[arr]);   var _proto = StorageUILayer.prototype;   _proto.onclick = function(params){ console.log("--------------------------------hhhhhhhhhhh- "); }   -------------------------------------...

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

414. timeline 类动作节点回调 [ 70%]

...leX:1, scaleY:1, alpha:1},2000,null,0); timeLine.play(0,true); timeLine.on(Event.COMPLETE,this,this.onComplete); timeLine.on(Event.LABEL, this, this.onLabel); } function onComplete() { console.log("timeLine complete!!!!"); } function onLabel(label) { console.log("LabelName:" + label); }少年 没仔...

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

415. laya.device.motion.Gyroscope [ 70%]

... Packagelaya.device.motionClasspublic class GyroscopeInheritanceGyroscope EventDispatcher Object 使用Gyroscope.instance获取唯一的Gyroscope引用,请勿调用构造函数。 listen()的回调处理器接受两个参数: function onOrientationChange(absolute:Boolean, info:RotationInfo):voi...

来源: laya_api 发布时间: 20170929

416. textinput动态修改宽度 会出现重叠的文字 [ 70%]

...输入文字的多少,它会自动加长的效果。 但是当我监听Event.INPUT,执行动态增加输入框宽度时,出现了文字重叠,很难看,   我的代码很简单就是 let input: Laya.TextInput = new Laya.TextInput(); input.skin = "new/textinput.png"; input.sizeGrid = "50, ...

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

417. laya.d3.component.Component3D [ 70%]

...Classes | Index | Frames No Frames Component3DProperties | Methods | Events Packagelaya.d3.componentClasspublic class Component3DInheritanceComponent3D EventDispatcher ObjectImplements IUpdate, laya.resource.IDestroySubclasses Animator, AttachPoint, Collider, KeyframeAnimations, Script Compon...

来源: laya_api 发布时间: 20170929

418. laya.d3.component.animation.KeyframeAnimations [ 69%]

... | Index | Frames No Frames KeyframeAnimationsProperties | Methods | Events Packagelaya.d3.component.animationClasspublic class KeyframeAnimationsInheritanceKeyframeAnimations Component3D EventDispatcher ObjectSubclasses RigidAnimations, SkinAnimations KeyframeAnimation 类用于帧动画组...

来源: laya_api 发布时间: 20170929

419. laya.display.Node [ 69%]

...| All Classes | Index | Frames No Frames NodeProperties | Methods | Events Packagelaya.displayClasspublic class NodeInheritanceNode EventDispatcher ObjectSubclasses Sprite Node 类是可放在显示列表中的所有对象的基类。该显示列表管理 Laya 运行时中显示的所有对...

来源: Laya2.0_api 发布时间: 20190513

420. 使用方向键 控制精灵在格子中移动 [ 69%]

... 可以加我的微信 一起研究 13890999   事件 Laya.stage.on(Laya.Event.KEY_UP,this,this.onkeyup); Laya.stage.on(Laya.Event.KEY_DOWN,this,this.onkeydown); Laya.timer.frameLoop(1,this,this.loop);事件响应 onkeyup(e){ for(let i:number = 0;i<this.keyList.length;i++){ if(this.keyList[i]==e...

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