大约有 1,723 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0077 秒)
Laya_社区(1004) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(49)
...onents/Inspector-CapsuleCollider.png) 1. Is Trigger 2. Center 3. Radius 4. Height 5. Direction - Mesh Collider  1. Is Trigger 2. Mesh - Rigidbody  1. Mass 2. Is Kinematic 3. Use Gravity...
来源: Laya2.0_文档 发布时间: 20200822
...一个类即可:class Laya { public static function init(width:Number, height:Number, ... plugins):* { return null } } 这有点类似使用laya 原生js开发中的.d.ts文件,只是我们应该让这个laya类定义库尽量的小,满足编译的要求即可。这样能够极大提高编译...
来源: Laya_社区 发布时间: 20170321
... (图1-8) 我们可以通过偏移localOffset、半径radius、高度height、方向orientation,来设置圆柱体碰撞形状的位置、圆柱粗细、圆柱高矮、胶囊朝向,如图1-9所示。 (图1-9) 1.1.5 圆锥体碰撞形状 圆锥体碰撞形状用于表示一个锥体物体...
来源: Laya3.0_文档 发布时间: 20251010
...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