• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
4
Question by ZenithCode · Oct 07, 2013 at 04:56 PM · cameranativephoto

How to access device (iPhone/Android) native camera?

Hi,

I am building an app which needs access to the device's native camera?

Can anyone give me pointers on how to do that please?

Thanks.

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image meat5000 ♦ · Oct 19, 2013 at 12:04 PM 1
Share

http://lmgtfy.com/?q=unity+ios+camera

http://lmgtfy.com/?q=unity+android+camera

I never thought I'd have to use that on you :P

avatar image Undertaker Infinity · May 02, 2015 at 04:06 AM 2
Share

Hi. I got here through googling "Unity android camera" and I find your coment most useful. Thanks!

avatar image lentinant · May 03, 2015 at 11:16 AM 1
Share

@meat5000 what abbout fact, that "camera" is component in Unity engine, and most results describe camera as rendering element?

avatar image crispybeans · May 03, 2016 at 02:17 PM 0
Share

Hi @ZenithCode

If you want to create something that resembles a camera app inside your game you might consider using some extensions to the WebCamTexture ( https://www.assetstore.unity3d.com/en/#!/content/56673 ) - CameraCaptureKit extends the webCamTexture so you can enable stuff like Focus, Flash, Torch and will make the quality of the image taken higher.

Cheers

1 Reply

· Add your reply
  • Sort: 
avatar image
16
Best Answer

Answer by ZenithCode · Oct 19, 2013 at 12:12 PM

Thanks @meat5000

I've found the solution but never updated the question.

The camera can be access through the WebCamTexture API. (Not intuitive/right name but it works)

http://docs.unity3d.com/Documentation/ScriptReference/WebCamTexture.html

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image meat5000 ♦ · Oct 19, 2013 at 12:20 PM 2
Share

Have a plus +1 for completing your QA :)

avatar image karol_h · Jan 15, 2014 at 02:17 PM 0
Share

But how to run a native Camera app to pick a photo?

avatar image Fattie · Apr 03, 2014 at 09:17 PM 0
Share

Karol - only way is just use the Prime31.com plugin.

avatar image DeveshPandey · Jul 19, 2014 at 03:16 PM 0
Share

http://u3d.as/content/devesh-pandey/camera-shot/8t8

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Access iOS Front Camera in Photo Mode - Not Video - a la Camera App 0 Answers

How to make camera position relative to a specific target. 1 Answer

capture photo with text 0 Answers

pick a photo with the device camera 0 Answers

How can the User import their own images? 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges