ave
ave

Reputation: 284

How can I show camera in scene in Unity 3d?

For a selfie option on my game, I need to create another camera (not a webcam view, but the camera that you can create by create->camera) and show it's view in a texture of a block (like in garry's mod, in projectors, you can project your view.). I searched it but I wasn't able to find a good answer. Thanks!

Upvotes: 1

Views: 490

Answers (2)

Page
Page

Reputation: 63

https://www.youtube.com/watch?v=pA7ZC8owaeo

I think this is what your looking for. Render Texture - You must be using unity 5 or higher since you have to have pro for 4 and below to use it.

Upvotes: 2

Joey Quinto
Joey Quinto

Reputation: 367

Just create a GameObject and add a camera component; something like this:

Camera cam = new GameObject("Selfie cam").AddComponent<Camera>();

Upvotes: 3

Related Questions