1
\$\begingroup\$

I'm using Unity 4.6.3. I create an animation from sprite. When I press Play button, I see animation plays on scene window, but on Game Window, I don't see anything.

enter image description here

Here is Inspector for main camera: enter image description here

Here is Inspector for Player: enter image description here

I have checked that both z = 0 when execute. Please tell me which part I config wrong ?

\$\endgroup\$
2
\$\begingroup\$

The camera needs to be in front of the scene (some -Z value) in order to see the scene. The camera can't see things that are at or behind its depth.

Set your camera position to be something like -10 for the Z component of the position. You should notice right away that the camera preview shows your sprite.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.