engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FScopedLevelCollectionContextSwitch类 参考

A helper RAII class to set the relevant context on a UWorld for a particular FLevelCollection within a scope. 更多...

#include <World.h>

Public 成员函数

 FScopedLevelCollectionContextSwitch (const FLevelCollection *const InLevelCollection, UWorld *const InWorld)
 Constructor that will save the current relevant values of InWorld and set the collection's context values for InWorld. 更多...
 
 FScopedLevelCollectionContextSwitch (int32 InLevelCollectionIndex, UWorld *const InWorld)
 Constructor that will save the current relevant values of InWorld and set the collection's context values for InWorld. 更多...
 
 ~FScopedLevelCollectionContextSwitch ()
 The destructor restores the context on the world that was saved in the constructor.
 

详细描述

A helper RAII class to set the relevant context on a UWorld for a particular FLevelCollection within a scope.

The constructor will set the PersistentLevel, GameState, NetDriver, and DemoNetDriver on the world and the destructor will restore the original values.

构造及析构函数说明

◆ FScopedLevelCollectionContextSwitch() [1/2]

FScopedLevelCollectionContextSwitch::FScopedLevelCollectionContextSwitch ( const FLevelCollection *const  InLevelCollection,
UWorld *const  InWorld 
)

Constructor that will save the current relevant values of InWorld and set the collection's context values for InWorld.

The constructor that takes an index is preferred, but this one still exists for backwards compatibility.

参数
InLevelCollectionThe collection's context to use
InWorldThe world on which to set the context.

◆ FScopedLevelCollectionContextSwitch() [2/2]

FScopedLevelCollectionContextSwitch::FScopedLevelCollectionContextSwitch ( int32  InLevelCollectionIndex,
UWorld *const  InWorld 
)

Constructor that will save the current relevant values of InWorld and set the collection's context values for InWorld.

参数
InLevelCollectionIndexThe index of the collection to use
InWorldThe world on which to set the context.

该类的文档由以下文件生成: