Complete noobie question about camera postition

So, here’s my issue: I’m trying to create a REALLY basic game, and I want the camera to stay put at the angle and position I have it set to in the Scene view. My problem is that whenever I hit the ‘play’ button to preview in the Game panel, the camera drops like a brick. Is this a setting I haven’t noticed in Inspector panel (seems unlikely) or will one of these preset scripts that I have sitting here do the trick? Or do I have to write a brand new script for the camera?

I want the camera

  1. stationary
  2. not movable by player

Thanks!
~Zarius

What’s your camera parented to? It sounds like you’ve got either a rigidbody on the camera causing it to fall or it’s attached to something in the scene that’s moving.

My Main Camera (and only camera) is currently using the default script for “Smooth Follow 2D” (hopefully that’s what you meant). I don’t know how to check if it’s attached to anything, but nothing is moving yet, I haven’t even gotten that far… I’ve got one piece of terrain, one entity, one camera, and nothing else at all. Not even textures yet. Trying to get a feel for the system while I wait for my artist to get back to me with some concept art.

For some reason, I feel compelled to mention that it’s the default camera that was there to begin with.

If your camera falls like a brick you have very likely attached some rigidbody to it (maybe this was accidental). To check this, select the camera in the scene view. Then look at the right panel in Unity that’s named “Inspector”, There you can see your camera and the components that are attached to it. Look for something named rigidbody and remove it. If it’s not there, please make a screenshot of the inspector panel. That way we can have a look at it and quickly see what’s wrong.

Alright, figured it out! Thank you both! Mostly, thank you kork. I was going through and listing everything I could see on the Inspector panel, and I found the problem. This helped me find the Target option I’d passed over fifty times LOOKING for it. It was targeted to the player, which I assume made it zoom onto the player when play started. Took me about twenty seconds to figure out how to change the target to the Main Camera, which keeps it stationary. Jeff, I am hoping that my skill levels and Java levels just weren’t upto par to understand what your question about “parented” meant, and further that I randomly managed to get the answer to it by shear dumb luck. If not, hopefully what I figured out in a fit of irritation with kork was what you were trying to get me to find.

Thanks, both of you!
~Zarius

You’re welcome :slight_smile: Good luck with your game and have fun!