大约有 430 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0096 秒)
...length + 1); settings.font = fontSize + "px 'Microsoft Yahei'" //获取2d的上线文开始设置相关属性 var canvas = settings.canvas; canvas.width = settings.canvasWidth; canvas.height = settings.canvasHeight; var ctx = canvas.getContext("2d"); //绘制背景色 ctx.fillSty...
来源: Laya_社区 发布时间: 20180814
...tring Inherited from Resource.url Defined in laya/resource/Resource.ts:107 获取资源的URL地址。 uuid uuid: string Inherited from Resource.uuid Defined in laya/resource/Resource.ts:109 获取资源的UUID。 Static DEBUG DEBUG: boolean = false Inherited from Resource.DEBUG Defined in laya/reso...
来源: Laya3.0_api 发布时间: 20231115
...tring Inherited from Resource.url Defined in laya/resource/Resource.ts:107 获取资源的URL地址。 uuid uuid: string Inherited from Resource.uuid Defined in laya/resource/Resource.ts:109 获取资源的UUID。 Static DEBUG DEBUG: boolean = false Inherited from Resource.DEBUG Defined in laya/reso...
来源: Laya3.0_api 发布时间: 20231115
...节点。 注意: Sprite 默认没有宽高,可以通过getBounds函数获取;也可手动设置宽高;还可以设置autoSize=true,然后再获取宽高。Sprite的宽高一般用于进行碰撞检测和排版,并不影响显示图像大小,如果需要更改显示图像大小,请...
来源: Laya2.0_api 发布时间: 20190513
LayaAir引擎 请问如何获取某组件的像素坐标 我在stage上添加了vbox,里面含有N个hbox,在其中一个hbox里含有一个button,请问我如何获取这个button的像素点坐标,需要它的像素x、y、宽度、高度,如果用localToGlobal,好像获取得的是...
来源: Laya_社区 发布时间: 20180528
...ies Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInHierarchy : Boolean[read-only] 获取在场景中是否激活。 Node alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite...
来源: Laya2.0_api 发布时间: 20190513
创建多个Sprite后,用getChildByName()方法获取出来的的坐标是都是0,0,且高宽发生变化 在创建的不同位置的Sprite并设置了不同坐标以及相同大小之后,再次根据getChildByName()获取出来时x,y坐标居然是0,0而且高度跟宽度也会变化很多,...
来源: Laya_社区 发布时间: 20180427
...t bitmap(value: BaseTexture): void Defined in laya/resource/Texture.ts:214 获取位图。 Returns BaseTexture 位图。 Defined in laya/resource/Texture.ts:222 设置位图。 Parameters value: BaseTexture Returns void 位图。 cpuMemory get cpuMemory(): number Inherited from Resource.cpuMemory De...
来源: Laya3.0_api 发布时间: 20231115
父元素,子元素,兄弟元素 各位大佬,我想知道怎么获取一个元素的兄弟元素?因为我需要禁止兄弟元素的点击事件?还有什么获取子元素和获取父元素? 2018-09-01 添加评论 已悬赏5元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...
来源: Laya_社区 发布时间: 20180901
...ies Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInHierarchy : Boolean[read-only] 获取在场景中是否激活。 Node alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite...
来源: Laya2.0_api 发布时间: 20190513