大约有 248 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0064 秒)
...引位置。 Parameters node:Node — 子节点。 Returnsint — 子节点所在的索引位置。 getComponent()method public function getComponent(clas:*):* 获得组件实例,如果没有则返回为null Parameters clas:* — 组建类型 Returns* — 返回组件 getComponents()method pub...
来源: Laya2.0_api 发布时间: 20190513
...`纹理图片转换`功能界面, 点击`浏览`选择要转换的图片所在文件夹(如果是单图,不想选文件夹,只能是拖拽到该功能面板中), 然而指定输出的目录和选择压缩后使用的平台(安卓或iOS),如图6-1所示。  (图6...
来源: Laya2.0_文档 发布时间: 20210714
...索引位置。 Parameters node: Node 子节点。 Returns number 子节点所在的索引位置。 getComponent getComponent<T>(componentType: {}): T Defined in laya/display/Node.ts:968 获得组件实例,如果没有则返回为null Type parameters T: Component Parameters componentType: {}...
来源: Laya3.0_api 发布时间: 20231115
...配置是用于界面国际化,请将它新建在你的所有界面文件所在的目录或上级目录。 标识:国际化配置文件的唯一标识,自动生成,不可修改(如果确实要修改,可以用文本方式打开配置文件直接修改,但需要自行保证唯一。但...
来源: Laya3.0_文档 发布时间: 20251010
...示。 (动图2-7) 需要特别注意,启用该功能后,Spine 组件所在节点的锚点设置将不再生效。 如果仍需对位置进行额外偏移,可使用 Spine 的偏移属性,或在外层包裹一个节点进行调整。 2.11 位置偏移 offset 当自动调整计算出的位置...
来源: Laya3.0_文档 发布时间: 20251128
...运行时截图,FPS稳定于52上下。 (图2-1) 当我们对文字所在的容器设置为cacheAs之后,如下面的例子所示,性能获得较大的提升,FPS达到到了60帧。 //...省略其他代码 var textBox=new Laya.Sprite(); textBox.cacheAs="bitmap"; //...省略其他代码 ...
来源: Laya3.0_文档 发布时间: 20251010
...索引位置。 Parameters node: Node 子节点。 Returns number 子节点所在的索引位置。 getComponent getComponent<T>(componentType: {}): T Inherited from Node.getComponent Defined in laya/display/Node.ts:968 获得组件实例,如果没有则返回为null Type parameters T: Compo...
来源: Laya3.0_api 发布时间: 20231115
...索引位置。 Parameters node: Node 子节点。 Returns number 子节点所在的索引位置。 getComponent getComponent<T>(componentType: {}): T Inherited from Node.getComponent Defined in laya/display/Node.ts:956 获得组件实例,如果没有则返回为null Type parameters T: Compo...
来源: Laya3.0_api 发布时间: 20231102
...发布时,若该类未被其他类引用、未添加到节点上,或者所在的预制体 / 场景未发布,这个类会被裁剪。 2、识别组件 @property() 2.1 组件属性的常规使用 当开发者想将组件的属性,通过IDE暴露给外界编辑来传入数据。需要在类属...
来源: Laya3.0_文档 发布时间: 20251010
...索引位置。 Parameters node: Node 子节点。 Returns number 子节点所在的索引位置。 getComponent getComponent<T>(componentType: {}): T Inherited from Node.getComponent Defined in laya/display/Node.ts:968 获得组件实例,如果没有则返回为null Type parameters T: Compo...
来源: Laya3.0_api 发布时间: 20231115