Hello, I’m (obviously) somewhat new to Unreal. I’m trying to get a reference to my player controller to set my mouse to visible or not visible but I keep getting this error. I’ve tried casting to bp_Thirdpersoncharacter controller but it didnt work and adding ignore move input. I’ve been reading and searching around but haven’t been able to find a solution yet. Im doing this in blueprint only, 3rd person template. Thank you!
Welcome!
The way to stop getting that error is to run the reference through an IsValid gate. (This is best practice for whenever you may be referencing anything that you are not 110% positive will return a valid reference)
This will obviously not allow that logic to run afterwards but if you are getting an invalid controller reference then this must be running at some point where the game is either not running or has yet to have constructed the controller.
I can’t say I’ve used State Tree myself so maybe someone who has some experience will give you some information on how this is being called when no player controller is present. Either way that will stop the “Accessed None” error.
1 Like


