AWorldSettings::AddBookmark

Creates and adds a new bookmark of a different class.

Choose your operating system:

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 * AddBookmark
(
    const TSubclassOf< UBookmarkBase > BookmarkClass,
    const bool bExpandIfNecessary
)

Remarks

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.

Returns

The bookmark that was created. Will be nullptr on failure.

Parameters

Parameter

Description

BookmarkClass

Class of the new bookmark.

bExpandIfNecessary

Will increase MaxNumberOfBookmarks if there's not enough add another.