Manages the asynchronous switching between sub-levels, making sure that a previous sub-level is hidden before the CesiumGeoreference is switched to a new location and the next sub-level is loaded.
More...
#include <CesiumSubLevelSwitcherComponent.h>
|
| UCesiumSubLevelSwitcherComponent () |
|
TArray< ALevelInstance * > | GetRegisteredSubLevels () const noexcept |
| Gets the list of sub-levels that are currently registered with this switcher.
|
|
const TArray< TWeakObjectPtr< ALevelInstance > > & | GetRegisteredSubLevelsWeak () const noexcept |
| Gets the list of sub-levels that are currently registered with this switcher.
|
|
ALevelInstance * | GetCurrentSubLevel () const noexcept |
| Gets the sub-level that is currently active, or nullptr if none are active.
|
|
ALevelInstance * | GetTargetSubLevel () const noexcept |
| Gets the sub-level that is in the process of becoming active.
|
|
void | SetTargetSubLevel (ALevelInstance *LevelInstance) noexcept |
| Sets the sub-level that should be active.
|
|
Manages the asynchronous switching between sub-levels, making sure that a previous sub-level is hidden before the CesiumGeoreference is switched to a new location and the next sub-level is loaded.
Definition at line 19 of file CesiumSubLevelSwitcherComponent.h.
◆ UCesiumSubLevelSwitcherComponent()
UCesiumSubLevelSwitcherComponent::UCesiumSubLevelSwitcherComponent |
( |
| ) |
|
◆ GetCurrentSubLevel()
ALevelInstance * UCesiumSubLevelSwitcherComponent::GetCurrentSubLevel |
( |
| ) |
const |
|
noexcept |
Gets the sub-level that is currently active, or nullptr if none are active.
◆ GetRegisteredSubLevels()
TArray< ALevelInstance * > UCesiumSubLevelSwitcherComponent::GetRegisteredSubLevels |
( |
| ) |
const |
|
noexcept |
Gets the list of sub-levels that are currently registered with this switcher.
◆ GetRegisteredSubLevelsWeak()
const TArray< TWeakObjectPtr< ALevelInstance > > & UCesiumSubLevelSwitcherComponent::GetRegisteredSubLevelsWeak |
( |
| ) |
const |
|
inlinenoexcept |
Gets the list of sub-levels that are currently registered with this switcher.
This is slightly more efficient than GetRegisteredSubLevels but is not accessible from Blueprints.
Definition at line 39 of file CesiumSubLevelSwitcherComponent.h.
◆ GetTargetSubLevel()
ALevelInstance * UCesiumSubLevelSwitcherComponent::GetTargetSubLevel |
( |
| ) |
const |
|
noexcept |
Gets the sub-level that is in the process of becoming active.
If nullptr, the target is a state where no sub-levels are active.
◆ SetTargetSubLevel()
void UCesiumSubLevelSwitcherComponent::SetTargetSubLevel |
( |
ALevelInstance * | LevelInstance | ) |
|
|
noexcept |
Sets the sub-level that should be active.
The switcher will asynchronously load and show this sub-level.
◆ CesiumEditorSubLevelMutex
friend class CesiumEditorSubLevelMutex |
|
friend |
◆ UCesiumSubLevelComponent
friend class UCesiumSubLevelComponent |
|
friend |
The documentation for this class was generated from the following file: