SpiecsEngine
 
Loading...
Searching...
No Matches

◆ CreateEntity()

Entity Spices::World::CreateEntity ( const std::string & name = "None")

Create a new empty entity in this world.

Parameters
[in]nameEntity name.

Definition at line 13 of file World.cpp.

14 {
16
17 return CreateEntityWithUUID(UUID(), name);
18 }
#define SPICES_PROFILE_ZONE
Entity CreateEntityWithUUID(UUID uuid, const std::string &name="None")
Create a new empty entity with a uuid in this world.
Definition World.cpp:20

References CreateEntityWithUUID(), and Spices::UUID::UUID().

Referenced by Spices::GltfCollection::CreateEntityRecursive(), Spices::EditorWorld::OnPreActivate(), and Spices::GameEditorWorld::OnPreActivate().