Switching Viewmodes of airsim in gameplay with UMG Buttons

Hi, I am trying to switch view modes when the drone is flying with umg button in unreal engine 4.27. It does work with default keyboard input defined in airsim. but when i try to access setmode in blueprint to change viewmode uing button, it’s asking for target but neither it takes player controller, nor bp_cameraDirector as a target as in image below. What type of target should i use to access it ?

Hey @kcee454!

Where are these blueprints located, in the widget? Or in your BP_cameraDirector? If it is not the camera director itself, have you tried casting to your camera director?

Any additional specifics you provide will go a long way in solving your problem!

Hey @kcee454!

Checking in! Are you still having your problem with switching view modes?

(post deleted by author)

Hi Quetzalcodename, setMode function is from c++ class of airsim (AirSim/Unreal/Plugins/AirSim/Source/CameraDirector.cpp at main · microsoft/AirSim · GitHub) and i am trying to access it using blueprint and couldnot solve this isssue.