- Home /
computer camera use for pc/mac
I am making a RTS type game where you make armies/bases, and use them to destroy your enemies army/base. I am considering adding a video chat system(Not necessary, but in my opinion would be pretty cool). is there any way to get input from pc/mac camera if there is one plugged in?(also if possible the scripting for IOS/Android/Webplayer).
Answer by kolban · Apr 10, 2012 at 04:26 AM
Yes indeed. You can access attached Web Cam devices. To read and study more about this, visit the scripting reference for Unity and search using the keyword "webcam". You will find a variety of matching hits. I would start by reading about "WebCamDevice" and "WebCamTexture".
I figured out what that was on those pages, but my game is in C #(so I can easily comunicate variables back and forth) while they only $$anonymous$$ch it in Java script
I found my solution, I programed it in java to make a texture. and in c # I programed it to be used
Your answer
Follow this Question
Related Questions
Video from camera on background 1 Answer
Need help in combining camera views for a video 0 Answers
Unity does not stay on Android platform 0 Answers
Unity 4.5 Editor hangs when moving the camera 0 Answers
converting pc to mac 1 Answer