ULevelStreaming::SetWorldAsset

Setter for WorldAsset.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/LevelStreaming.h

Include

#include "Engine/LevelStreaming.h"

Source

/Engine/Source/Runtime/Engine/Private/LevelStreaming.cpp

Syntax

virtual void SetWorldAsset
(
    const TSoftObjectPtr< UWorld > & NewWorldAsset
)

Remarks

Setter for WorldAsset. Use this instead of setting WorldAsset directly to update the cached package name.