A blueprint class with 1 graphs.
More...
#include "/Game/Blueprints/Experience/DemoStreamingLevelManager"
|
| DECLARE_EVENT_HANDLER (UNewStepLoadedEvent) |
|
| DECLARE_EVENT_HANDLER (UNewStoryLoadedEvent) |
|
TArray< FName > | GetLevelsBasedOnStep (FText StepName) |
| UFUNCTION(BlueprintCallable, Category = "LevelStreamingManager")
|
|
APlayerController * | GetPrivateOwner () const |
|
void | HandleEvent (UBaseEvent *Event) |
|
void | LoadStreamingLevels (TArray< FName > levelsToLoad, bool onlyFadeOut=false, float FadeTime=0.5f) |
| Calling due to LevelStreamingDataTable, but you also can call it manually. In addition, you can setup AutoFadeInAndOut before calling.
|
|
void | LoadStreamingLevelsAndTeleportPlayer (TArray< FName > Levels, FTransform PlayerTransform, bool OnlyFadeOut=false, float FadeTime=0.5f) |
| Call it manually, if you want to teleport player to specific location after loading levels.
|
|
template<typename TEventType , typename... TInitializeArgs> |
void | SendEvent (TInitializeArgs... Arguments) |
|
void | SetLevelsVisibility (TArray< FName > Levels, bool Visible) |
| UFUNCTION(BlueprintCallable, Category = "LevelStreamingManager")
|
|
void | SetPrivateOwner (APlayerController *Owner) |
|
|
bool | AutoFadeInAndOut = true |
| UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "LevelStreamingManager")
|
|
UDataTable * | LevelStreamingDataTable |
| UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "LevelStreamingManager")
|
|
TArray< FName > | LoadedLevels |
| UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "LevelStreamingManager")
|
|
|
void | FilteredArraysToLoadUnload (TArray< FName > levelsToLoad) |
| This function takes an array of levels to load and filters the arrays LevelsToLoad and LevelsToUnload accordingly. It compares the provided levels with the currently loaded levels (LoadedLevels) to determine which levels should be loaded and which should be unloaded.
|
|
void | HandleEvent_Impl (class UBaseEvent *Event) |
|
void | LevelLoaded () |
| UFUNCTION()
|
|
void | LevelUnloaded () |
| UFUNCTION()
|
|
void | LoadStreamingLevels (int32 IndexToLoad) |
| This function loads a specific streaming level based on the provided index.
|
|
void | UnloadStreamingLevels (int32 IndexToUnload) |
| This function unloads a specific streaming level based on the provided index.
|
|
A blueprint class with 1 graphs.
UDF Path: /Game /Blueprints /Experience /DemoStreamingLevelManager
Config: Config/DefaultEngine.ini
This blueprint is Data Only
Definition at line 12 of file UDemoStreamingLevelManager_C.h.
◆ THandler
◆ THandlerKey
◆ THandlers
◆ DECLARE_EVENT_HANDLER() [1/2]
◆ DECLARE_EVENT_HANDLER() [2/2]
◆ EventGraph()
void UDemoStreamingLevelManager_C::EventGraph |
( |
| ) |
|
|
privateBlueprint |
◆ FilteredArraysToLoadUnload()
void UStreamingLevelManager::FilteredArraysToLoadUnload |
( |
TArray< FName > | levelsToLoad | ) |
|
|
protectedinheritedBlueprintCallable |
This function takes an array of levels to load and filters the arrays LevelsToLoad and LevelsToUnload accordingly. It compares the provided levels with the currently loaded levels (LoadedLevels) to determine which levels should be loaded and which should be unloaded.
- Parameters
-
levelsToLoad | The array of levels to load. |
UFUNCTION(BlueprintCallable, Category = "LevelStreamingManager")
Definition at line 53 of file StreamingLevelManager.cpp.
◆ GENERATED_BODY()
UStreamingLevelManager::GENERATED_BODY |
( |
| ) |
|
|
privateinherited |
◆ GetLevelsBasedOnStep()
TArray< FName > UStreamingLevelManager::GetLevelsBasedOnStep |
( |
FText | StepName | ) |
|
|
inheritedBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "LevelStreamingManager")
Retrieves levels based on the step name.
Definition at line 20 of file StreamingLevelManager.cpp.
◆ GetPrivateOwner()
◆ HandleEvent()
void UBaseManager::HandleEvent |
( |
UBaseEvent * | Event | ) |
|
|
inherited |
◆ HandleEvent_Impl()
void UBaseManager::HandleEvent_Impl |
( |
class UBaseEvent * | Event | ) |
|
|
protectedinherited |
◆ LevelLoaded()
void UStreamingLevelManager::LevelLoaded |
( |
| ) |
|
|
protectedinherited |
◆ LevelUnloaded()
void UStreamingLevelManager::LevelUnloaded |
( |
| ) |
|
|
protectedinherited |
◆ LoadStreamingLevels() [1/2]
void UStreamingLevelManager::LoadStreamingLevels |
( |
int32 | IndexToLoad | ) |
|
|
protectedinherited |
This function loads a specific streaming level based on the provided index.
- Parameters
-
IndexToLoad | The index of the level to load. |
Definition at line 215 of file StreamingLevelManager.cpp.
◆ LoadStreamingLevels() [2/2]
void UStreamingLevelManager::LoadStreamingLevels |
( |
TArray< FName > | levelsToLoad, |
|
|
bool | onlyFadeOut = false, |
|
|
float | FadeTime = 0.5f ) |
|
inheritedBlueprintCallable |
Calling due to LevelStreamingDataTable, but you also can call it manually. In addition, you can setup AutoFadeInAndOut before calling.
- Parameters
-
levelsToLoad | Levels you want to load |
onlyFadeOut | Do only Fade Out (useful when you load the first level) |
FadeTime | Optional param for custom fade time |
UFUNCTION(BlueprintCallable, Category = "LevelStreamingManager")
Definition at line 77 of file StreamingLevelManager.cpp.
◆ LoadStreamingLevelsAndTeleportPlayer()
void UStreamingLevelManager::LoadStreamingLevelsAndTeleportPlayer |
( |
TArray< FName > | Levels, |
|
|
FTransform | PlayerTransform, |
|
|
bool | OnlyFadeOut = false, |
|
|
float | FadeTime = 0.5f ) |
|
inheritedBlueprintCallable |
Call it manually, if you want to teleport player to specific location after loading levels.
- Parameters
-
Levels | Levels you want to load |
OnlyFadeOut | Do only Fade Out (useful when you load the first level) |
PlayerTransform | The transform where you want the player to be after loading |
FadeTime | Optional param for custom fade time |
UFUNCTION(BlueprintCallable, Category = "LevelStreamingManager")
Definition at line 136 of file StreamingLevelManager.cpp.
◆ SendEvent()
template<typename TEventType , typename... TInitializeArgs>
void UBaseManager::SendEvent |
( |
TInitializeArgs... | Arguments | ) |
|
|
inlineinherited |
◆ SetLevelsVisibility()
void UStreamingLevelManager::SetLevelsVisibility |
( |
TArray< FName > | Levels, |
|
|
bool | Visible ) |
|
inheritedBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "LevelStreamingManager")
Sets the visibility of levels.
Definition at line 144 of file StreamingLevelManager.cpp.
◆ SetPrivateOwner()
◆ UnloadStreamingLevels()
void UStreamingLevelManager::UnloadStreamingLevels |
( |
int32 | IndexToUnload | ) |
|
|
protectedinherited |
This function unloads a specific streaming level based on the provided index.
- Parameters
-
IndexToUnload | The index of the level to unload. |
Definition at line 174 of file StreamingLevelManager.cpp.
◆ AutoFadeInAndOut
bool UStreamingLevelManager::AutoFadeInAndOut = true |
|
inheritedBlueprintReadWriteEditAnywhere |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "LevelStreamingManager")
Determines if automatic fade in and out effects should be used when loading new levels.
Definition at line 124 of file StreamingLevelManager.h.
◆ Handlers
◆ LevelsToLoad
TArray<FName> UStreamingLevelManager::LevelsToLoad |
|
protectedinherited |
◆ LevelsToUnload
TArray<FName> UStreamingLevelManager::LevelsToUnload |
|
protectedinherited |
◆ LevelStreamingDataTable
UDataTable* UStreamingLevelManager::LevelStreamingDataTable |
|
inheritedBlueprintReadWriteEditAnywhere |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "LevelStreamingManager")
Data table with levels for loading based on step.
Definition at line 110 of file StreamingLevelManager.h.
◆ LoadedLevels
TArray<FName> UStreamingLevelManager::LoadedLevels |
|
inheritedVisibleAnywhereBlueprintReadOnly |
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "LevelStreamingManager")
Array storing the currently loaded levels.
Definition at line 117 of file StreamingLevelManager.h.
◆ LoadingIndex
int32 UStreamingLevelManager::LoadingIndex |
|
protectedinherited |
◆ PlayerNewTransform
FTransform UStreamingLevelManager::PlayerNewTransform |
|
protectedinherited |
Transform representing the new location for the player after loading levels.
Definition at line 163 of file StreamingLevelManager.h.
◆ PrivateOwner
◆ TeleportPlayerToSpecificLocation
bool UStreamingLevelManager::TeleportPlayerToSpecificLocation = false |
|
protectedinherited |
Determines whether to teleport the player to a specific location after loading levels.
Definition at line 162 of file StreamingLevelManager.h.
◆ TimeForFades
float UStreamingLevelManager::TimeForFades |
|
privateinherited |
◆ UnloadingIndex
int32 UStreamingLevelManager::UnloadingIndex |
|
protectedinherited |
The documentation for this class was generated from the following file: