immersive-home/docs/reference/EntityFactory.md

66 lines
2.4 KiB
Markdown
Raw Normal View History

2024-03-16 19:45:43 +02:00
# EntityFactory
**Inherits:** [RefCounted](https://docs.godotengine.org/de/4.x/classes/class_refcounted.html)
2024-03-16 19:45:43 +02:00
2024-03-17 01:14:31 +02:00
## Description
2024-03-16 19:45:43 +02:00
2024-03-17 01:14:31 +02:00
This class is used to create entities based on their type
2024-03-16 19:45:43 +02:00
## Methods
2024-04-26 18:41:52 +03:00
| Returns | Name |
| ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [Variant](https://docs.godotengine.org/de/4.x/classes/class_variant.html) | [create_entity](#create-entity) ( id: [String](https://docs.godotengine.org/de/4.x/classes/class_string.html), type: [Variant](https://docs.godotengine.org/de/4.x/classes/class_variant.html) ) |
| [String](https://docs.godotengine.org/de/4.x/classes/class_string.html) | [get_entity_icon](#get-entity-icon) ( type: [String](https://docs.godotengine.org/de/4.x/classes/class_string.html) ) |
2024-03-16 19:45:43 +02:00
2024-03-17 01:14:31 +02:00
## Constants
### Switch = `<Object>` {#const-Switch}
No description provided yet.
### Light = `<Object>` {#const-Light}
No description provided yet.
### Sensor = `<Object>` {#const-Sensor}
No description provided yet.
### MediaPlayer = `<Object>` {#const-MediaPlayer}
No description provided yet.
### Camera = `<Object>` {#const-Camera}
No description provided yet.
### ButtonEntity = `<Object>` {#const-ButtonEntity}
No description provided yet.
### NumberEntity = `<Object>` {#const-NumberEntity}
No description provided yet.
2024-04-26 18:41:52 +03:00
### LineGraphEntity = `<Object>` {#const-LineGraphEntity}
No description provided yet.
2024-03-16 19:45:43 +02:00
## Method Descriptions
2024-04-26 18:41:52 +03:00
### static create_entity (id: [String](https://docs.godotengine.org/de/4.x/classes/class_string.html) , type: [Variant](https://docs.godotengine.org/de/4.x/classes/class_variant.html) ) -> [Variant](https://docs.godotengine.org/de/4.x/classes/class_variant.html) {#create-entity}
No description provided yet.
### static get_entity_icon (type: [String](https://docs.godotengine.org/de/4.x/classes/class_string.html) ) -> [String](https://docs.godotengine.org/de/4.x/classes/class_string.html) {#get-entity-icon}
2024-03-16 19:45:43 +02:00
No description provided yet.