Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/AWorldSettings
Description
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
| Name | GetOrAddBookmark |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/WorldSettings.h |
| Include Path | #include "GameFramework/WorldSettings.h" |
| Source | /Engine/Source/Runtime/Engine/Private/WorldSettings.cpp |
UBookmarkBase * GetOrAddBookmark
(
const uint32 BookmarkIndex,
const bool bRecreateOnClassMismatch
)
Parameters
| Name | Remarks |
|---|---|
| bRecreateOnClassMismatch | Whether or not we should recreate an existing bookmark if it's class doesn't match the default bookmark class. |