EntityFactory
Spawns an entity of a configured class at this entity's position when triggered.
Properties
Entity To Create String The exact class name of the entity to spawn. Inputs
CreateEntity — Spawns one instance of the configured entity class at this entity's world position, with matching rotation and scale. Notes
EntityFactory spawns entities at runtime from the editor without any code. The spawned entity inherits this entity’s position, rotation, velocity, and scale at the moment CreateEntity is called.
The class name in Entity To Create must exactly match the class name of the entity you want to spawn, including capitalisation. This is the same name that shows up in the editor. If the class is not found in the entity lookup table the call will throw an exception.
The spawned entity starts with no editor properties set, so any properties your entity reads in OnSpawn will be empty. If your entity requires properties to function, either give it safe defaults in code or spawn it through normal means instead.