AWorldSettings::GetOrAddBookmark

Gets the bookmark at the specified index, creating it if a bookmark doesn't exist.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/WorldSettings.h

Include

#include "GameFramework/WorldSettings.h"

Source

/Engine/Source/Runtime/Engine/Private/WorldSettings.cpp

Syntax

UBookmarkBase * GetOrAddBookmark
(
    const uint32 BookmarkIndex,
    const bool bRecreateOnClassMismatch
)

Remarks

Gets the bookmark at the specified index, creating it if a bookmark doesn't exist.

This will fail if the specified index is greater than MaxNumberOfBookmarks.

For "plain" access that doesn't cause reallocation, use GetBookmarks

Parameters

Parameter

Description

bRecreateOnClassMismatch

Whether or not we should recreate an existing bookmark if it's class doesn't match the default bookmark class.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss