Cavrnus-CVT Bookmarks Command

Cavrnus-CVT Bookmarks Command

Reminder: All of the Event Dispatchers we create must match exactly to what is shown in this guide!

Modifying BookmarkManager Blueprint

CVT BookmarkManager Blueprint Location

→ CollaborativeViewer/Blueprints/Commands/Bookmark/UMG/BookmarkManager

 

image-20240826-231137.png
Add Cavrnus_BookmarkCreated Event Dispatcher

 

image-20240826-231153.png
Add both the Text and Location Inputs

 

Adding New Logic

image-20240826-230547.png
Locate the OnPressed (Add) logic Branch
image-20240826-230620.png
Add the newly created CavrnusBookmarkCreated Event Dispatch

Syncing UI

The bookmarks command poses a challenge because both the bookmark actors and their corresponding UI elements need to be synced. In order to leave the original CVT blueprints as untouched as possible, the BP_Bookmark actor needs a reference to it’s corresponding UI element as shown below.

CVT BP_Bookmark Blueprint Location

→ CollaborativeViewer/Blueprints/Commands/Bookmark/BPs/BP_Bookmark

 

→ Add Cavrnus_ListItem variable to BP_Bookmark

image-20240619-172250.png
BP_Bookmarknow holds a reference to its UI element

 

image-20240619-172347.png
Ensure both Instance Editable and Expose on Spawn are set to true

 

Modifying AddedBookmarkWidget Blueprint

CVT AddedBookmarkWidget Blueprint Location

→ CollaborativeViewer/Blueprints/Commands/Bookmark/UMG/AddedBookmarkWidget

 

image-20240619-173355.png
Locate the Add Bookmark to Level comment group. We are now providing a self UI reference upon creating the corresponding BP_Bookmark

 

The Bookmarks Command is now setup! Ensure all blueprints compile and if needed, refresh nodes.