大约有 908 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0052 秒)
Laya_社区(457) Laya2.0_示例(91) Laya_示例(88) Laya2.0_文档(74) Laya3.0_api(63) Laya2.0_api(58) laya_api(54) Laya3.0_文档(23)
...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
...链接 提交 1 个回复 啊浪 赞同来自: 找到了,在Laya.Stage.height 2018-08-07 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 啊浪 相关问题 写个捕鱼游戏练练手 请问有没有方法能够获取“鼠标是否处...
来源: Laya_社区 发布时间: 20180807
... 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
...E_FIXED_WIDTH适配屏幕的问题 HTMLDivElement <img>标签width、height在手机端无效 版本2.1.0HTMLDivElement设置width无效,被自动换行!!! 页面中的width问题 跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 IDE打开某个场景时弹...
来源: Laya_社区 发布时间: 20161227
...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
...) _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
...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
layacanvas 大小问题 canvas id="layaCanvas" width="1280" height="1068" 这个canvas的大小在哪里设置的,要是自己设置,怎么设置呢, 急急急啊。。。 2018-01-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20180116
...//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
...partIns.x = Laya.stage.width / 2; partIns.y = Laya.stage.height / 2; } 报错如下: ReferenceError: Loader is not defined preload.js:55 at LoveView.onEnable (file:///D:/laya/myLaya/myZootopia/bin/js/bundle.js:683:94) at LoveView.__proto._activeHier...
来源: Laya_社区 发布时间: 20190704