Camera References within Game Mode Blueprint

anonymous_user_2dca6733
Tue, 27 Oct 2015 13:03:55 +0000
Editor Scripting

Brief background: For other pieces of coding needed within my game I have been forced to change the camera code location to be within the GameMode blueprint which means I cannot use direct level references like I was using before.

So the question is how do I reference the cameras within the GameMode blueprint?

Currently I have cast the Room2 camera to the GameMode blueprint and have created a variable for the camera within the GameMode blueprint although when the code runs for the camera to change it shows a view that I haven’t set up. Just for explanation the custom event which causes all this to happen is a on screen button, once that is pressed the camera changes. I’ve tested the button using print string and there is no problem with this.

http://puu.sh/kZrlf/94b42d5d31.png

http://puu.sh/kZrjB/948d0b486f.png

1 post - 1 participant