大约有 1,720 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0049 秒)
Laya_社区(1002) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(48)
...mage("res/basketball.png"); ball_skin.pivot(ball_skin.width / 2, ball_skin.height / 2); this.ball = Matter.Bodies.circle(0, -100, 34, { layaSprite: ball_skin, // 绑定一个laya的Sprite, 不能用render.sprite density: 1, // 密度 restitution: 0.85 // 弹性 }); 2017-07-04 ...
来源: Laya_社区 发布时间: 20170704
...Child(this.sprite); this.drawText(sprite.x, sprite.y, sprite.width, sprite.height); } onEnable(): void { } onDisable(): void { } } export enum layoutType { /**竖排 */ verticalRight = 0, } 2019-11-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...
来源: Laya_社区 发布时间: 20191103
...-07 0 0 分享 微博 QZONE 微信 159*****142 赞同来自: 如果是fixedHeight就按屏幕高缩放,如果是fixedWidth就按屏幕高缩放 this._scale = Laya.Browser.height / Laya.stage.designHeight; Laya.stage.scale(this._scale, this._scale) 场景中心坐标因为缩放需要...
来源: Laya_社区 发布时间: 20180404
...TipManager public function ToolTipDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#eeffcc"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { this._testTip=new TestTipsUI();//务必在Laya.init后去new...
来源: Laya_社区 发布时间: 20161115
...= false; txt.overflow = Text.SCROLL; txt.size(Laya.stage.width, Laya.stage.height); txt.pos(10, 10); txt.fontSize = 30; txt.wordWrap = true; txt.color = "#FF9632"; Laya.stage.addChild(txt); var test:Object = JSON.parse('{"id": 0, "name": "Chen"}'); traceMsg(test['id']); traceMsg(test['name']); var j...
来源: Laya_社区 发布时间: 20180227
....x = (Laya.stage.width - ListDataSourceItem.WID) / 2; list.y = (Laya.stage.height - ListDataSourceItem.HEI * list.repeatY) / 2; // 使用但隐藏滚动条,滚动条水平滚动 list.vScrollBarSkin = ""; // list.vScrollBarSkin 滚动条垂直滚动 //item对象是否可选以及选中后可做的操...
来源: Laya_社区 发布时间: 20180410
...pConfig.httpPhotoUrl+UserData.username,0,0,gui.imgPhoto.width,gui.imgPhoto.height ); gui.imgPhoto.addChild(photo); gui.imgPhoto.mask=mask;载入的头像在浏览器ok,在真机构建的app上就有问题,真机上如果没mask,头像正常,如果加了mask,就不显示头像,显示一...
来源: Laya_社区 发布时间: 20160802
...; s.pos(0,0); console.log("=mask container=>>", s.width, s.height)//打印出是0,0 this.scrollContainer.mask = s;//scrollContainer是一个有宽高的Box,为什么打印出的s的宽高是0,0,只要设置了mask,chrorme就会警告cache bitmap size larger than 2048,cache ig...
来源: Laya_社区 发布时间: 20180720
...---------------------------------- public function Grid(width_or_matrix:*, height:int, matrix:Array = null) 虽然as3不支持多个构造函数,但是也没必要用这种解决方法吧,包括Grid构造函数初始化的代码简直绕晕了 附件 : --> Astar.zip 2016-12-21 添加评论 免...
来源: Laya_社区 发布时间: 20161221
...资源。 BaseTexture format : int[read-only] 纹理格式 BaseTexture height : int[read-only] 获取高度。 BaseTexture magFifter : int 放大过滤器 BaseTexture minFifter : int 缩小过滤器 BaseTexture mipmap : Boolean 是否使用mipLevel BaseTexture repeat : Boolean 是否使用重...
来源: laya_api 发布时间: 20170929