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

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

761. Laya.MovieClip() new的时候崩溃了,在线等,很急!!!! [ 60%]

... this.swfAni.x = (Laya.stage.width -1900) / 2; this.swfAni.y = (Laya.stage.height - 1200) / 2; this.swfAni.zOrder = 3; this.swfAni.loop = false; this.swfAni.play(0,false); this.swfAni.visible = true; this.swfAni.on(laya.events.Event.COMPLETE, this, this.onSWFPlayComplete,[state]); return this.swfAni...

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

762. layacanvas 大小问题 [ 60%]

layacanvas 大小问题 canvas id="layaCanvas" width="1280" height="1068"  这个canvas的大小在哪里设置的,要是自己设置,怎么设置呢, 急急急啊。。。 2018-01-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

763. 如何获取游戏宽高 [ 60%]

...链接 提交 1 个回复 啊浪 赞同来自: 找到了,在Laya.Stage.height 2018-08-07 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 啊浪 相关问题 写个捕鱼游戏练练手 请问有没有方法能够获取“鼠标是否处...

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

764. 为什么mc取得的时候有时候mc.getBounds().width;有值有时候是0 [ 60%]

...E_FIXED_WIDTH适配屏幕的问题 HTMLDivElement <img>标签width、height在手机端无效 版本2.1.0HTMLDivElement设置width无效,被自动换行!!! 页面中的width问题 跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 IDE打开某个场景时弹...

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

765. 简单粒子效果,发布成单机版apk在移动端安装运行,结果显示不出来 [ 60%]

...    sp.x = Laya.stage.width / 2;             sp.y = Laya.stage.height / 2;         }   发布成单机版apk在移动端安装运行,移动端报错提示: http://www.xxx.com/LayaUISampl ... annot read property 'start' of null this.sp.emitter.start(Number.MAX_VALUE); TypeError...

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

766. 打包为APP后,Lable的宽高有所变化,请问如何修正? [ 60%]

...2.text = "上个Lable的宽: " + demoLable1.width + ", 高: " + demoLable1.height; demoLable2.fontSize = 50; demoLable2.bgColor = "#0FF"; demo.addChild(demoLable2.pos(0,50)); } 附件 : --> 2018-05-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

767. sprite.loadImage加载图片怎么设置要显示的x,y坐标和宽高? [ 60%]

...ct: Laya.Rectangle = new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height); this.tMap.createMap("res/mario_map/new_map2.json", viewRect, Laya.Handler.create(this,this.initMap)); } private initMap(): void { var layer = this.tMap.getLayerByIndex(9); var gs = layer.getObjectByName('others1'); v...

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

768. 在Unity中设置动画事件(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 60%]

...//label用于显示 var _lab:Label = new Label(); _lab.text = "test"; _lab.height = 100; _lab.width = 100; _lab.fontSize = 40; _lab.pos(200,200); Laya.stage.addChild(_lab); //给脚本的加强表现用方法赋值 _script.showMsgFunc = function ():void { text = "ShowMsg"; color = "red"; }.bind(_lab...

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

769. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 59%]

...) _fish.graphics.drawRect(this.are.x, this.are.y, this.are.width, this.are.height, "#00ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.rotation); if (_fish.hitTestPoint(_fish.x, _fish.y)...

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

770. 分享:如何用代码创建自定义Tab组件 [ 59%]

...aAirDemo { public function LayaAirDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#EEFFCC"; //预加载button的资源,用于tab的项皮肤 Laya.loader.load("button-4.png",Handler.create(this,onLoaded)); } private function onLoaded():void { //添加tab容器 var tab:Tab=new ...

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