本文整理汇总了C++中ULevelStreaming::GetFullName方法的典型用法代码示例。如果您正苦于以下问题:C++ ULevelStreaming::GetFullName方法的具体用法?C++ ULevelStreaming::GetFullName怎么用?C++ ULevelStreaming::GetFullName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ULevelStreaming
的用法示例。
在下文中一共展示了ULevelStreaming::GetFullName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SetBookmark
void FEditorModeTools::SetBookmark( uint32 InIndex, FEditorViewportClient* InViewportClient )
{
UWorld* World = InViewportClient->GetWorld();
if ( World )
{
AWorldSettings* WorldSettings = World->GetWorldSettings();
// Verify the index is valid for the bookmark
if ( WorldSettings && InIndex < AWorldSettings::MAX_BOOKMARK_NUMBER )
{
// If the index doesn't already have a bookmark in place, create a new one
if ( !WorldSettings->BookMarks[ InIndex ] )
{
WorldSettings->BookMarks[ InIndex ] = ConstructObject<UBookMark>( UBookMark::StaticClass(), WorldSettings );
}
UBookMark* CurBookMark = WorldSettings->BookMarks[ InIndex ];
check(CurBookMark);
check(InViewportClient);
// Use the rotation from the first perspective viewport can find.
FRotator Rotation(0,0,0);
if( !InViewportClient->IsOrtho() )
{
Rotation = InViewportClient->GetViewRotation();
}
CurBookMark->Location = InViewportClient->GetViewLocation();
CurBookMark->Rotation = Rotation;
// Keep a record of which levels were hidden so that we can restore these with the bookmark
CurBookMark->HiddenLevels.Empty();
for ( int32 LevelIndex = 0 ; LevelIndex < World->StreamingLevels.Num() ; ++LevelIndex )
{
ULevelStreaming* StreamingLevel = World->StreamingLevels[LevelIndex];
if ( StreamingLevel )
{
if( !StreamingLevel->bShouldBeVisibleInEditor )
{
CurBookMark->HiddenLevels.Add( StreamingLevel->GetFullName() );
}
}
}
}
}
}