Skip to content

Camera follows an object. #885

Jan 24, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

There are no tedious questions :)

In order to do what you want, there are basically two ways:

  1. Create a Component that implements ICmpUpdatable and in its Update method have it track your target GameObject's (player, enemy, whatever) Position, and attach it to the Camera.
  2. Simply have the Camera as a children to the GameObject that you want to track.

If you need more info or it's not clear, just let me know

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Throndax57
Comment options

Answer selected by Throndax57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants