Ive had a working static camera as intended but couldnt cast rays from it so i had the idea to attach a camera to the actor that was running the raycasting code from as maybe it was trying to reference from a parent component, so I want to add a camera to my player start blueprint and it isnt being used, ive deleted the working camera and have followed the several starter tutorials on adding a camera to your game or character and I for the life of me cannot create a working camera again… As far as the tutorials tell it seems like as long as my player controllers are set up properly and the gamemode settings are correct just dragging in a camera component to my actor viewport should work… its somthing that shouldve taken 5-10 seconds to implement and has taken me 4.5 hours to spaghetti my code and still have nothing working.
any assistance is appreciated. thanks in advance.
Hi Lahar,
You’ve said a few things that I feel like need a bit of clarification.
“I want to add a camera to my player start blueprint” The player start is just the location your Pawn/Character spawns at. The camera you use is almost always in your Pawn or Character.
“just dragging in a camera component to my actor viewport should work” It can’t just be any actor, it needs to be a Pawn or Character.
To simplify things a bit (and avoid Gamemodes, PlayerStarts and PlayerControllers) Try dragging a Pawn or Character into your scene, and setting ‘Auto Possess’ to “Player 0”
Check out some of the template projects to see how camera/movement controls are implemented.
Hope that helps!
1 Like
yeah, ive moved away from that and have tried both a pawn and a character but it doesnt seem to be working, it has a forward facing camera built in and its not using the camera i added to the character.
and the resulting camera when i press play
I found the issue, I had code hiding in my level blueprint trying to reference a specific camera I had deleted in the process of switching the camera to be under a different parent.
1 Like