Utilizing DigiCam Functions
Lets talk about making use of DigiCam's functions. These functions are intended to make using DigiCam easier, and modifying values at runtime quick.
Get DigiCam Reference This function is simply an interface call to the character/controller blueprint where the DigiCam component is attached. This makes referencing the DigiCam component as easy as calling this function, using the reference output pin. Future functions covered here might require this reference to be used to call said functions.

Update DigiCam Active This function is intended to be used to disable either the Photo Camera, Photo Album, or both. You might not want your player to always have access to the Photo Camera/Album, and by utilizing this function we can control when they get to use these systems.

Get All Actors With Photo Cam Tags
Utilizes the GetAllActorsWithTag
function to find all actors in the current level that contains any tag added into the PhotoCamTargets_DT
Data Table. Useful if you'd need to track how many actors can be photographed in the level, or reference them for any reason.

Is Player View Target DigiCam A simple boolean output value that outputs whether the players view target is set to the Photo Camera or not. Useful if you'd need to disable certain functionality when the player is using the Photo Camera.

Play Sound With Subtitles
This function is a custom solution to subtitles in general. We utilize a widget approach to display subtitles on screen, giving us more customizability over how we want our subtitles to look in-game. The subtitle array contains entries of Time (Float)
that a line is displayed on screen before proceeding to the next one in the array, and a Text (Text)
value that should contain the text of that line.

Bonus Functions below
Update Input Mapping Context A function that automatically replaces the players currently used input mapping context. Used when the player is using the Photo Camera/Album to update their input actions, but can also be used for any custom systems you setup in your project that requires a custom input scheme.

Widget Fade A simple black screen fade that can be used to transition gameplay when needed. This function is specifically used when opening up the Photo Camera, to smoothly transition the players current view, to their new view inside the Photo Camera. This function simply creates a widget overlay and added to the viewport above all other widgets, simulating a "true" black screen fade.

Format Now
Returns the formatted local date and time on this computer. Used for the "Display Date And Time" Photo Album display name type, but can be used to extract a specific string value out of the regular Now
function.

Last updated