◆ createPrefab()
| void PrefabManager::createPrefab |
( |
std::string const & |
name, |
|
|
const Prefab & |
hander |
|
) |
| |
Create a prefab.
- Parameters
-
| name | The name of the prefab |
| hander | The handler of the prefab (the function that will be called when the prefab is instantiated) |
◆ instantiatePrefab() [1/2]
Instantiate a prefab.
- Parameters
-
| name | The name of the prefab |
| scene | The scene where the prefab will be instantiated |
| gameObject | The game object that will be instantiated |
◆ instantiatePrefab() [2/2]
| bool PrefabManager::instantiatePrefab |
( |
std::string const & |
name, |
|
|
std::size_t const & |
sceneId, |
|
|
std::shared_ptr< GameObject > & |
gameObject |
|
) |
| |
Instantiate a prefab.
- Parameters
-
| name | The name of the prefab |
| sceneId | The id of the scene where the prefab will be instantiated |
| gameObject | The game object that will be instantiated |
| components | The components that will be added to the game object |
◆ removePrefab()
| void PrefabManager::removePrefab |
( |
std::string const & |
name | ) |
|
Destroy a prefab.
- Parameters
-
| name | The name of the prefab |
The documentation for this class was generated from the following files:
- Library/KapEngine/KapEngine/Prefabs/PrefabManager.hpp
- Library/KapEngine/KapEngine/Prefabs/PrefabManager.cpp