大约有 377 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0048 秒)
Laya_社区(160) Laya3.0_api(70) Laya2.0_api(62) laya_api(59) Laya_示例(9) Laya2.0_文档(8) Laya2.0_示例(7) Laya3.0_文档(2)
...50); gun_skin.pivot(gun_skin.width / 2, gun_skin.height / 2); gun = Bodies.rectangle(150, 150, 50, 50, { frictionAir: 0.5, //空气摩擦力 density: 0.68, // 密度 layaSprite: gun_skin, // 绑定一个laya的Sprite, 不能用render.sprite render: { visible: true, // 开启渲染 } }); console.log(...
来源: Laya_社区 发布时间: 20180522
...色 Returns FillTextureCmd | null getBounds getBounds(realSize?: boolean): Rectangle Inherited from Graphics.getBounds Defined in laya/display/Graphics.ts:201 获取位置及宽高信息矩阵(比较耗CPU,频繁使用会造成卡顿,尽量少用)。 Parameters Default value realSize: boolean = ...
来源: Laya3.0_api 发布时间: 20231115
...,由于image本身包含空白区域,所以鼠标响应的区域是个Rectangle(含透明区),并非单纯的肉眼可视的显示区域,这就会出现明明点击的是ape2,却触发了ap1的点击事件】 2016-11-15 1 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来...
来源: Laya_社区 发布时间: 20161115
...色 Returns FillTextureCmd | null getBounds getBounds(realSize?: boolean): Rectangle Inherited from Graphics.getBounds Defined in laya/display/Graphics.ts:201 获取位置及宽高信息矩阵(比较耗CPU,频繁使用会造成卡顿,尽量少用)。 Parameters Default value realSize: boolean = ...
来源: Laya3.0_api 发布时间: 20231115
...a_Aaron 赞同来自: zd1fr5g55 、Barry Allen GuideLayer. scrollcet = new Rectangle(0,0,屏幕宽(舞台宽高也可以),屏幕高) 限制一下试试,有问题再及时反馈 2017-12-22 2 1 分享 微博 QZONE 微信 宇智波 旋 赞同来自: leesson 已经9102年了 laya还没有解...
来源: Laya_社区 发布时间: 20171222
...= new TiledMap(); tiledMap.createMap("../res/dt.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); 调用后报错TypeError: Cannot read property 'split' of undefined at TiledMap.__proto.mergePath (file:///C:/Users/Administrator/Documents/myLaya/Hello/bi...
来源: Laya_社区 发布时间: 20181026
...tArray){ if (!this._$P.mHtmlBounds)this._set$P("mHtmlBounds",new Rectangle()); var tRectangle=this._$P.mHtmlBounds; tRectangle.x=tRectangle.y=0; tRectangle.width=this.contextWidth=tArray[0]; tRectangle.height=this.contextHeight=tArray[1]; this.setBounds(tRectangle); //我自己添加的部...
来源: Laya_社区 发布时间: 20180104
...t = height; content._style.scrollRect || (content.scrollRect = Rectangle.create()); content._style.scrollRect.setTo(rectX, rectY, width, height); content.scrollRect = content.scrollRect; } 附件 : --> Bug文本.zip 2021-11-08 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20211108
...完全不依赖于这个,如果需要width和height, new window.Laya.Rectangle(0, 0, this.img_width, this.img_height, '#FF0000'), 然后设置sprite.hitArea = rect. 但是这个其实很弱。 首先,这个rect不会随着图片的旋转而旋转,所以要做精细的碰撞检测得自己...
来源: Laya_社区 发布时间: 20180530
...ass:1, restitution:0.8, layaSprite: sprite}; var role: any = Matter.Bodies.rectangle(180, 450, 334, 522, roleOptions); 代码类似这样的:sprite是我传入的图片,要怎么改变这张图片的大小? 2018-08-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20180827