top of page

Loading Handler

This is a loading class for transition between levels (Player will be teleported to the loading room and then to the selected level or streaming level).

Class name:

Include:

Type:

Lines of code:

ALoading_Handler

#include "Levels/Loading_Handler.h"

Actor

360

​General Information

Description

Loading Handler is an actor class which handles the transtion between levels. VR Player can be moved to the level or streaming level.


Settings

  • Player - This is a pointer on a child of VR Player class(See VR Player).

  • Loading Room Location - This is a vector variable which is a loading room location to which player will be teleported while waiting loading level.

  • Fade Screen On Load - This is a bool variable which fades a screen on loading.

  • Is Game On Start - This is a bool variable which indicates if the game is on start. If the value is set to true actor will load a streaming level with the string Menu Level Name.

  • Menu Level Name - This is a string variable. If Is Game On Start value is set to true actor will load a streaming level with the string Menu Level Name.



Functions

  • MoveToLevel - This function moves player to the loading room. Then moves player to the level.

  • MoveToStreamLevel - This function moves player to the loading room. Then loads a sub level and teleports a player to the location.

  • IsLoading - This function indicates if the player is in the loading room.

Blueprint API Reference

Public Member Functions

 

MoveToLevel
   Moves player to the loading room. Then moves player to the level.
Input
  FName LevelToLoad
 

MoveToStreamLevel
   Moves player to the loading room. Then loads sub level and moves player to the location.
Input
  FName LevelToLoad
  FVector SpawnLocation
 

IsLoading

Output
  bool bIsLoading
 

bottom of page