top of page

Advanced practise week-1:Cameras

During week 1 of advanced practise we learnt how to create multiple cameras and how to cycle between them using a button. Firstly we created a blueprint class actor and named it camera manager. We then went within the event graph and made it so the camera could be placed and used to show what is in front of it you can see the code for this below.
 

After doing this we created a UI element using a widget blueprint and within this we created a button and then used the event graph to make is so the button would appear when in the first cameras view this will later be used in order to change camera perspective. This also expanded upon the code for the first camera both of which you will see below.

Widget blueprint event graph

Expanded event graph for the camera

After doing this we then went onto creating the function that when the button was pressed it would swap between camera 0 and camera 1 this camera being made by just duplicating camera 0. This can be done using the code below created within camera manager and the blueprint used for the UI.

Widget blueprint event graph expanded in order to change camera 

The camera change function with camera manager

And just like that you have cameras that you can flick through using a button.

bottom of page