Skip to content
Flecs
v4.1
Search
Ctrl K
include
flecs
addons
cpp
mixins
prefab
mixin.inl
1
/**
2
* @file addons/cpp/mixins/entity/mixin.inl
3
* @brief Entity world mixin.
4
*/
5
6
/** Create a prefab that's associated with a type.
7
*
8
* @memberof flecs::world
9
* @ingroup cpp_entities
10
*/
11
template
<
typename
T>
12
flecs::entity
prefab
(
const
char
*name =
nullptr
)
const
;
13
14
/** Create a prefab.
15
*
16
* @memberof flecs::world
17
* @ingroup cpp_entities
18
*/
19
template
<
typename
... Args>
20
flecs::entity
prefab
(Args &&... args)
const
;
flecs::entity
Entity.
Definition
entity.hpp:30
flecs::world::prefab
flecs::entity prefab(Args &&... args) const
Create a prefab.
flecs::world::prefab
flecs::entity prefab(const char *name=nullptr) const
Create a prefab that's associated with a type.
Esc
↑
↓
to navigate
↵
to open
Esc
to close