Component¶
类位于 Infernux
描述¶
附加到 GameObject 的所有组件的基类。
description
属性¶
| 名称 | 类型 | 描述 |
|---|---|---|
| type_name | str |
(只读) |
| component_id | int |
(只读) |
| enabled | bool |
此组件是否已启用。 |
| execution_order | int |
|
| game_object | GameObject |
此组件附加到的 GameObject。 (只读) |
| required_component_types | List[str] |
(只读) |
properties
公共方法¶
| 方法 | 描述 |
|---|---|
is_component_type(type_name: str) → bool |
|
serialize() → str |
|
deserialize(json_str: str) → None |
public_methods
示例¶
example
另请参阅¶
see_also