Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Game Development

Vidit Shah
Vidit Shah
6,037 Points

Get acess of camera for making Game

Hola! I want to Make a Game In unity which has can use users camera to pop up object in camera scene (What user is seeing through his/her camera) and create objects in them so as user can play

To further explain like in Frog game we used an environment where flies usually used to spawn but i want use the camera view of user to spawn the fly so as he/she can play in the camera view and attack the flies . by tapping on them

Bit weird but just want to try it out

Not sure I understand but are you basically wanting a first person view instead of third person or are you somehow wanting the camera itself to trigger spawning (and if so what is it that's the actual event you're wanting this to happen?)?

2 Answers

Vidit Shah
Vidit Shah
6,037 Points

I want users Camera(from where he/she takes pictures) to be used as environment sir.I want his surroundings to be used as environment

Sounds like you simply want the game to be first person rather than third person then. https://teamtreehouse.com/community/quaternions-in-first-person