In Unity Editor, when I select a game object and press 'F', the camera will focus on it without rotation and this game object is filled in the view.

I would like to know how the the camera position is calculated? I don't need transitions.

  • 2
    \$\begingroup\$ Do you mean editor's scene viewport or an actual camera game object? \$\endgroup\$
    – Nikaas
    Commented Jan 5, 2022 at 7:46
  • \$\begingroup\$ In Unity Editor, when 'F' is pressed, the scene viewport will fit the selected game object. I mean I want to reproduce that 'fit game object' feature using my actual camera during my game play. \$\endgroup\$
    – landings
    Commented Jan 5, 2022 at 8:12


You must log in to answer this question.

Browse other questions tagged .