Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink

You are not connected. Please login or register

Unity Ninja Unity 3D Forum » HELP » Help (General) » How to get Camera to follow an Instantiated Prefab Projectile?

How to get Camera to follow an Instantiated Prefab Projectile?

View previous topic View next topic Go down  Message [Page 1 of 1]


Member [Lv. 0]
Member [Lv. 0]

I'm struggling with this, as the title suggests, I'm trying to get the main camera to follow a prefab that is instantiated in a 2D game along the x axis - from left to right. The prefab is spawned after the player fires it (Angry Birds style), so the position of the projectile just needs adding to the position of the camera.

All the scripts/code I've seen so far only seem to work with game objects that are within the scene already, not instantiated prefabs.

I'm still new to Unity and I'm using C#, thanks for any help!

View user profile

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum