Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/AWorldSettings
Description
Creates and adds a new bookmark of a different class.
When the bookmark's class is not of the same class as the default bookmark class, the bookmark will be removed on the next update. This will fail if we've overrun MaxNumberOfBookmarks.
| Name | AddBookmark |
| 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 * AddBookmark
(
const TSubclassOf < UBookmarkBase > BookmarkClass,
const bool bExpandIfNecessary
)
The bookmark that was created. Will be nullptr on failure.
Parameters
| Name | Remarks |
|---|---|
| BookmarkClass | Class of the new bookmark. |
| bExpandIfNecessary | Will increase MaxNumberOfBookmarks if there's not enough add another. |