Skip to main content
Version: latest - a1.73.x โš–๏ธ

๐Ÿ๏ธ Level

Work with Unreal level in runtime.

๐Ÿ—ฟStatic Class
This is a Static Class. Access it's methods directly with .. It's not possible to spawn new instances.
๐Ÿ’‚Authority
This static class can be accessed only on ๐ŸŸง Client side.
๐Ÿง‘โ€๐Ÿ’ปAPI Source
This page is auto-generated! The Functions, Properties and Events described here are defined in our GitHub's API Repository! Feel free to commit suggestions and changes to the source .json API files!

๐Ÿ—ฟ Static Functionsโ€‹

ReturnsNameDescription
of Calls a Level Blueprint custom event (which can be added when creating levels through Unreal Engine)
of Gets a list of all Stream Levels
Loads a Level in runtime
Sets a Stream Level visibility
Unloads a Level in runtime

CallLevelBlueprintEvent

Calls a Level Blueprint custom event (which can be added when creating levels through Unreal Engine)

โ€” Returns of (the function return values).

local ret_01, ret_02, ... = Level.CallLevelBlueprintEvent(event_name, arguments...?)
TypeParameterDefaultDescription
event_name Required parameter Event or Function name
arguments...?nilSequence of arguments to pass to the event

GetStreamLevels

Gets a list of all Stream Levels

โ€” Returns of ().

local ret = Level.GetStreamLevels()

LoadStreamLevel

Loads a Level in runtime

Level.LoadStreamLevel(level_name, should_block_on_load?, make_visible_after_load?)
TypeParameterDefaultDescription
level_name Required parameter No description provided
should_block_on_load?falseIf this should be a blocking operation - the game will freeze
make_visible_after_load?trueIf this should be visible automatically after loaded

SetStreamLevelVisibility

Sets a Stream Level visibility

Level.SetStreamLevelVisibility(level_name, visibility)
TypeParameterDefaultDescription
level_name Required parameter No description provided
visibility Required parameter If this level should be visible

UnloadStreamLevel

Unloads a Level in runtime

Level.UnloadStreamLevel(level_name, should_block_on_unload?)
TypeParameterDefaultDescription
level_name Required parameter No description provided
should_block_on_unload?falseIf this should be a blocking operation - the game will freeze

๐Ÿš€ Eventsโ€‹

NameDescription
Called when a Stream Level is hidden
Called when a Stream Level is loaded
Called when a Stream Level is shown
Called when a Stream Level is unloaded

StreamLevelHide

Called when a Stream Level is hidden
Level.Subscribe("StreamLevelHide", function(level_name)
-- StreamLevelHide was called
end)
TypeArgumentDescription
level_nameNo description provided

StreamLevelLoad

Called when a Stream Level is loaded
Level.Subscribe("StreamLevelLoad", function(level_name)
-- StreamLevelLoad was called
end)
TypeArgumentDescription
level_nameNo description provided

StreamLevelShow

Called when a Stream Level is shown
Level.Subscribe("StreamLevelShow", function(level_name)
-- StreamLevelShow was called
end)
TypeArgumentDescription
level_nameNo description provided

StreamLevelUnload

Called when a Stream Level is unloaded
Level.Subscribe("StreamLevelUnload", function(level_name)
-- StreamLevelUnload was called
end)
TypeArgumentDescription
level_nameNo description provided