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
Share
Go down
Member [Lv. 0]
Member [Lv. 0]
Posts : 1
Points : 882
Rep : 0
Join date : 2016-02-23
Age : 46
Location : UK
View user profile

How to get Camera to follow an Instantiated Prefab Projectile?

on Tue Feb 23, 2016 11:33 am
Hi,

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!
Back to top
Permissions in this forum:
You cannot reply to topics in this forum