AWorldSettings::AddBookmark

Creates and adds a new bookmark of a different class.

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.

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