Can't assign camera to new created player
I've got problem with my code. What I'm trying to do here is to assign camera from the scene to a new created player. I'm doing it like this:
It's compiling and I can go to editor to check, and in editor: The name of kamera is debuging so I assume it's correctly referenced. But SetViewTargetWithBlend seems to work on new player AND the old one. The worst thing is I don't get view from camera I selected but only a black screen on both split screens. I'd got CreatePlayer separated from SetViewTargetWithBlend but this didn't seem to give any effect.
Had anyone something like this, or can help with it?
P.S. I don't know if this information will help but this code is in GameMode of my map, in BeginPlay event.
Follow this question
Once you sign in you will be able to subscribe for any updates here