Class EditorLevelUtils
Editor Level Utils
Inherited Members
Namespace: UE4.UnrealEd
Assembly: UE4DotNet.dll
Syntax
public class EditorLevelUtils : UObject
Properties
| Improve this Doc View SourceDefaultObject
Get UE4 Default Object for this Class
Declaration
public static EditorLevelUtils DefaultObject { get; }
Property Value
Type | Description |
---|---|
EditorLevelUtils |
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
Type | Description |
---|---|
Class |
Methods
| Improve this Doc View SourceCreateNewStreamingLevel(SubclassOf<LevelStreaming>, String, Boolean)
Creates a new streaming level in the current world @
Declaration
public static LevelStreaming CreateNewStreamingLevel(SubclassOf<LevelStreaming> LevelStreamingClass, string NewLevelPath, bool bMoveSelectedActorsIntoNewLevel)
Parameters
Type | Name | Description |
---|---|---|
SubclassOf<LevelStreaming> | LevelStreamingClass | |
System.String | NewLevelPath | |
System.Boolean | bMoveSelectedActorsIntoNewLevel |
Returns
Type | Description |
---|---|
LevelStreaming |
Remarks
param LevelStreamingClass The streaming class type instead to use for the level. @param NewLevelPath Optional path to the level package path format ("e.g /Game/MyLevel"). If empty, the user will be prompted during the save process. @param bMoveSelectedActorsIntoNewLevel If true, move any selected actors into the new level.
@return Returns the newly created level, or NULL on failure
MakeLevelCurrent(LevelStreaming)
Makes the specified streaming level the current level for editing.
Declaration
public static void MakeLevelCurrent(LevelStreaming InStreamingLevel)
Parameters
Type | Name | Description |
---|---|---|
LevelStreaming | InStreamingLevel |
Remarks
The current level is where actors are spawned to when calling SpawnActor
@return true If a level was removed.
MoveActorsToLevel(Byte, LevelStreaming, Boolean)
Moves the specified list of actors to the specified streaming level.
Declaration
public static int MoveActorsToLevel(byte ActorsToMove, LevelStreaming DestStreamingLevel, bool bWarnAboutReferences)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | ActorsToMove | |
LevelStreaming | DestStreamingLevel | |
System.Boolean | bWarnAboutReferences |
Returns
Type | Description |
---|---|
System.Int32 |
Remarks
The new actors will be selected
@param ActorsToMove List of actors to move @param DestStreamingLevel The destination streaming level of the current world to move the actors to @param bWarnAboutReferences Whether or not to show a modal warning about referenced actors that may no longer function after being moved @return The number of actors that were successfully moved to the new level
MoveSelectedActorsToLevel(LevelStreaming, Boolean)
Moves the currently selected actors to the specified streaming level.
Declaration
public static int MoveSelectedActorsToLevel(LevelStreaming DestLevel, bool bWarnAboutReferences)
Parameters
Type | Name | Description |
---|---|---|
LevelStreaming | DestLevel | |
System.Boolean | bWarnAboutReferences |
Returns
Type | Description |
---|---|
System.Int32 |
Remarks
The new actors will be selected
@param DestStreamingLevel The destination streaming level of the current world to move the actors to @param bWarnAboutReferences Whether or not to show a modal warning about referenced actors that may no longer function after being moved @return The number of actors that were successfully moved to the new level
New(UObject, Name)
Spawn an object of this class
Declaration
public static EditorLevelUtils New(UObject obj = null, Name name = default(Name))
Parameters
Type | Name | Description |
---|---|---|
UObject | obj | |
Name | name |
Returns
Type | Description |
---|---|
EditorLevelUtils |
Operators
| Improve this Doc View SourceImplicit(IntPtr to EditorLevelUtils)
Convert from IntPtr to UObject
Declaration
public static implicit operator EditorLevelUtils(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | p |
Returns
Type | Description |
---|---|
EditorLevelUtils |