大约有 538 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0057 秒)
... 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
...平均分成你所需要的份数,设置他们的Index索引值就可以获取到里面切好的图片。 private function updateScore():void{ var data:Object = {}; var temp:Number = this.score; for (var i:int = 5; i > 0; i-- ){ data["item" i] = {index:Math.flo...
来源: Laya_社区 发布时间: 20170221
...rivate intensity: number = 1.8; // 定义灯光强度 onAwake(): void { // 获取 FreeformLight2D 组件 this.lightComp = this.owner.getComponent(Laya.FreeformLight2D); //灯光的顶点通常建议是在IDE中可视化配置,这里是为了演示如何通过代码动态设置顶点数据,方便...
来源: Laya3.0_文档 发布时间: 20251010
...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
LayaAir2.13.0 面板获取物体 代码获取该物体上的脚本 如图,在属性面板赋值对应物体,然后在脚本里获取该物体上的脚本,报错 附件 : --> 2022-08-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20220804
...持在最底部显示? Laya2.6.0beta 物理引擎 刚体碰撞点位置获取不正确 骨骼动画播放完后的回调时间 动画混合无效(版本2.6) spine在微信小游戏中切换动画无法显示 Animator2D该如何判断动画是否已经播放完成? Animator 如何获取当前...
来源: Laya_社区 发布时间: 20230701
... 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
...int类型的所以子物体个数var i :int ; i = this.var.numChildren;//获取子物体个数 //获取单个子物体 this.var.getchildAt("想要拿到的子物体下标int类型")//根据下标获取对应子物体 2018-04-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 ...
来源: Laya_社区 发布时间: 20180409
... Laya_XS 赞同来自: 这应该是demo里某个例子用的文件,简单获取文件的方式是打开demo的链接,然后f12看下文件路径获取下,或者节后我发你下 2016-10-05 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...
来源: Laya_社区 发布时间: 20161004
... 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