# EntityFactory **Inherits:** [RefCounted](https://docs.godotengine.org/de/4.x/classes/class_refcounted.html) ## Description This class is used to create entities based on their type ## Methods | 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) ) | ## Constants ### Switch = `` {#const-Switch} No description provided yet. ### Light = `` {#const-Light} No description provided yet. ### Sensor = `` {#const-Sensor} No description provided yet. ### MediaPlayer = `` {#const-MediaPlayer} No description provided yet. ### Camera = `` {#const-Camera} No description provided yet. ### ButtonEntity = `` {#const-ButtonEntity} No description provided yet. ### NumberEntity = `` {#const-NumberEntity} No description provided yet. ### LineGraphEntity = `` {#const-LineGraphEntity} No description provided yet. ## Method Descriptions ### 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} No description provided yet.