大约有 152 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0108 秒)
...节点。 注意: Sprite 默认没有宽高,可以通过getBounds函数获取;也可手动设置宽高;还可以设置autoSize=true,然后再获取宽高。Sprite的宽高一般用于进行碰撞检测和排版,并不影响显示图像大小,如果需要更改显示图像大小,请...
来源: laya_api 发布时间: 20170929
... 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
...th 深度。绘图顺序。 Target Texture 目标纹理。 ### 使用代码获取导出的摄像机 那么,如果在unity中创建了摄像机并导出,在代码中加载导出文件后,我们怎么去获取摄像机呢?这可以通过场景的子节点索引或名称来获取,获取...
来源: Laya2.0_文档 发布时间: 20210714
... 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
...幕的宽度。 h:相机输出到屏幕的高度。 ### 使用代码获取导出的摄像机 那么,如果在unity中创建了摄像机并导出,在代码中加载导出文件后,我们怎么去获取摄像机呢?这可以通过场景的子节点索引或名称来获取,获取后...
来源: 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 发布时间: 20231102
... 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 发布时间: 20231102
... 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
...操作,设置组件的name(为了在runtime实例中通过getChildByName获取子节点),通常设置完name,如果不用IDE里的编译功能,直接在VSCode里跑layaair2-cmd compile任务,运行起来,该组件的name总是没有更新的,通过debug发现还是原来的name。这...
来源: Laya_社区 发布时间: 20191127
... 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