Be the first to post for 'A Simple DIY Follow Camera'!

If you’re reading this, there probably aren’t very many posts yet. But don’t worry, you can be the first! Either create a new post or just reply to this one to say ‘hi’.

Did it. I don’t what is it about transform.position, but I always get the thought that you can’t directly edit position and do some overcomplicated piece of code. Then I remember that it’s the x/y/z child properties you can’t play with and delete the whole thing for one line of code.

Only thing I really did differently was manually assign the Player object in the editor via a public property. I find it easier to work with unless circumstances force me to do otherwise.

1 Like

My instinct about the Player tag as a string is also telling me that it is code smell. I guess the only tricky part about setting it up with a public reference would be for use in different scenes. Each new scene you’d have to re setup that reference (I think). Whereas the Player can have the “Player” tag set to the prefab.

Privacy & Terms