大约有 1,437 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0067 秒)
Laya_社区(1008) Laya3.0_api(149) Laya2.0_api(103) laya_api(77) Laya2.0_文档(51) Laya3.0_文档(47) Laya_示例(2)
laya.spriet对象getbounds()时报错 laya js 图片怎么获取宽高 用load image加载的 附件 : --> 2018-07-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: sprite getboungs 是...
来源: Laya_社区 发布时间: 20180717
...: 找到解决方法了,使用drawToCanvas 后调用返回对象的source获取canvas 哦 2020-06-14 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 186*****868 相关问题 分享:LayaAir下Loading进度条的制作(ActionScript 3....
来源: Laya_社区 发布时间: 20191010
... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 rigidBody rigidBody: RigidBody Inherited from ColliderBase.rigidBody Defined in laya/physics/ColliderBase.ts:27 [只读]刚体引用 Optional runInEditor runInEditor: boolean Inherited from Component...
来源: Laya3.0_api 发布时间: 20231115
...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display...
来源: Laya3.0_api 发布时间: 20231115
...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite bg : AutoBitmap 表示此对象包含的文本背景 AutoBitmap 组件实例。 TextInput ...
来源: laya_api 发布时间: 20170929
...rivate intensity: number = 1.8; // 定义灯光强度 onAwake(): void { // 获取 FreeformLight2D 组件 this.lightComp = this.owner.getComponent(Laya.FreeformLight2D); //灯光的顶点通常建议是在IDE中可视化配置,这里是为了演示如何通过代码动态设置顶点数据,方便...
来源: Laya3.0_文档 发布时间: 20251010
... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya/components/Component.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inhe...
来源: Laya3.0_api 发布时间: 20231115
...pc端貌似通过Laya.Browser.clientWidth和Laya.Browser.clientHeight可以获取尺寸,手机端就不好使了,现在想获取stage的尺寸如何获取呢,因为获取了场景尺寸就可以调整2D元素的位置了?不知道有没有其他的什么解决方法。 2.如果初始化的...
来源: Laya_社区 发布时间: 20170908
...创建不同的网格(Mesh)和碰撞盒(ColliderShape)。 #### (2) 获取导出模型上的刚体 在模型导出后,可能要修改刚体的物理效果,这时候就需要从对象身上获取到刚体。 下面的示例代码就是获取刚体后修改刚体的参数。 ```typescript /...
来源: Laya2.0_文档 发布时间: 20210715
... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya/components/Component.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inhe...
来源: Laya3.0_api 发布时间: 20231115