Class Level
A Level is a collection of Actors (lights, volumes, mesh instances etc.
Inherited Members
Namespace: UE4.Engine
Assembly: UE4DotNet.dll
Syntax
public class Level : UObject
Remarks
). Multiple Levels can be loaded and unloaded into the World to create a streaming experience.
@see https://docs.unrealengine.com/latest/INT/Engine/Levels @see UActor
Properties
| Improve this Doc View SourceActorCluster
Actor Cluster
Declaration
public LevelActorContainer ActorCluster { get; set; }
Property Value
| Type | Description |
|---|---|
| LevelActorContainer |
AssetUserData
Array of user data stored with the asset
Declaration
public ObjectArrayField<AssetUserData> AssetUserData { get; }
Property Value
| Type | Description |
|---|---|
| ObjectArrayField<AssetUserData> |
bIsLightingScenario
Declaration
public bool bIsLightingScenario { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
bIsVisible
Declaration
public bool bIsVisible { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
bLocked
Declaration
public bool bLocked { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
bStaticComponentsRegisteredInStreamingManager
Declaration
public bool bStaticComponentsRegisteredInStreamingManager { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
bTextureStreamingRotationChanged
Declaration
public bool bTextureStreamingRotationChanged { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static Level DefaultObject { get; }
Property Value
| Type | Description |
|---|---|
| Level |
LevelBuildDataId
Identifies map build data specific to this level, eg lighting volume samples.
Declaration
public FGuid LevelBuildDataId { get; set; }
Property Value
| Type | Description |
|---|---|
| FGuid |
LevelColor
The level color used for visualization.
Declaration
public LinearColor LevelColor { get; set; }
Property Value
| Type | Description |
|---|---|
| LinearColor |
Remarks
(Show -> Advanced -> Level Coloration) Used only in world composition mode
LevelScriptActor
The level scripting actor, created by instantiating the class from LevelScriptBlueprint. This handles all level scripting
Declaration
public LevelScriptActor LevelScriptActor { get; set; }
Property Value
| Type | Description |
|---|---|
| LevelScriptActor |
LevelScriptBlueprint
Reference to the blueprint for level scripting
Declaration
public LevelScriptBlueprint LevelScriptBlueprint { get; set; }
Property Value
| Type | Description |
|---|---|
| LevelScriptBlueprint |
LevelSimplification
Level simplification settings for each LOD
Declaration
public LevelSimplificationDetails LevelSimplification { get; set; }
Property Value
| Type | Description |
|---|---|
| LevelSimplificationDetails |
LightBuildLevelOffset
Level offset at time when lighting was built
Declaration
public IntVector LightBuildLevelOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| IntVector |
LightmapTotalSize
Total number of KB used for lightmap textures in the level.
Declaration
public float LightmapTotalSize { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |
MapBuildData
Registry for data from the map build.
Declaration
public MapBuildDataRegistry MapBuildData { get; set; }
Property Value
| Type | Description |
|---|---|
| MapBuildDataRegistry |
Remarks
This is stored in a separate package from the level to speed up saving / autosaving. ReleaseRenderingResources must be called before changing what is referenced, to update the rendering thread state.
Model
BSP UModel.
Declaration
public Model Model { get; set; }
Property Value
| Type | Description |
|---|---|
| Model |
ModelComponents
BSP Model components used for rendering.
Declaration
public ObjectArrayField<ModelComponent> ModelComponents { get; }
Property Value
| Type | Description |
|---|---|
| ObjectArrayField<ModelComponent> |
NavDataChunks
Navigation related data that can be stored per level
Declaration
public ObjectArrayField<NavigationDataChunk> NavDataChunks { get; }
Property Value
| Type | Description |
|---|---|
| ObjectArrayField<NavigationDataChunk> |
NavListEnd
Nav List End
Declaration
public NavigationObjectBase NavListEnd { get; set; }
Property Value
| Type | Description |
|---|---|
| NavigationObjectBase |
NavListStart
Start and end of the navigation list for this level, used for quickly fixing up when streaming this level in/out.
Declaration
public NavigationObjectBase NavListStart { get; set; }
Property Value
| Type | Description |
|---|---|
| NavigationObjectBase |
Remarks
@TODO DEPRECATED - DELETE
NumTextureStreamingDirtyResources
Num of resources that have changed since the last texture streaming build. Updated in map check.
Declaration
public int NumTextureStreamingDirtyResources { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
NumTextureStreamingUnbuiltComponents
Num of components missing valid texture streaming data. Updated in map check.
Declaration
public int NumTextureStreamingUnbuiltComponents { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
OwningWorld
The World that has this level in its Levels array.
Declaration
public World OwningWorld { get; set; }
Property Value
| Type | Description |
|---|---|
| World |
Remarks
This is not the same as GetOuter(), because GetOuter() for a streaming level is a vestigial world that is not used. It should not be accessed during BeginDestroy(), just like any other UObject references, since GC may occur in any order.
ShadowmapTotalSize
Total number of KB used for shadowmap textures in the level.
Declaration
public float ShadowmapTotalSize { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
| Type | Description |
|---|---|
| Class |
WorldSettings
World Settings
Declaration
public WorldSettings WorldSettings { get; set; }
Property Value
| Type | Description |
|---|---|
| WorldSettings |
Methods
| Improve this Doc View SourceNew(UObject, Name)
Spawn an object of this class
Declaration
public static Level New(UObject obj = null, Name name = default(Name))
Parameters
| Type | Name | Description |
|---|---|---|
| UObject | obj | |
| Name | name |
Returns
| Type | Description |
|---|---|
| Level |
Operators
| Improve this Doc View SourceImplicit(IntPtr to Level)
Convert from IntPtr to UObject
Declaration
public static implicit operator Level(IntPtr p)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IntPtr | p |
Returns
| Type | Description |
|---|---|
| Level |