Paler
Paler

Reputation: 349

How to use the camera on mobile device with unity3d?

I'm a student and I want to get every single frame from the camera to do some operation. Can any one tell me how can I make it in unity. Thanks in advance.

Upvotes: 0

Views: 91

Answers (1)

Kardux
Kardux

Reputation: 2157

Well your question is quite broad as it is...

Anyway:

  • If you want to do some operations every frame you can simply use MonoBehaviour.Update() which is called every frame.

  • If you're looking for some Camera related operation I guess what you're looking for is called postprocessing : you can find a bit more about it here.

  • If you want to extract every frame of your game you can call Application.CaptureScreenshot on Update() method : be aware that this will be extremely heavy and slow down your FPS drastically.

Hope this helps.

Upvotes: 1

Related Questions