Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
0
Question by AndreasX12 · Jul 19, 2013 at 09:30 PM · cameradeviceshot

How to capture and save camera image on Android?

Hi, I know that this question have been asked before, but I couldn't find any clear answer.

What I'm trying to achieve is that you can take a photo from your device's camera and then save it, so that the user could watch it in another scene.

How can this be done?

Thanks, Andreas :-)

Comment
Add comment
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

1 Reply

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

Answer by kromenak · Jul 20, 2013 at 04:25 AM

Unity has some WebCam classes that might be helpful, but it isn't clear from their documentation whether it works on Android. Might be worth a shot, though: http://docs.unity3d.com/Documentation/ScriptReference/WebCamTexture.html

Failing that, the guys at Prime31 offer a couple plugins for getting photos from a device's camera. The android "Etcetera" plugin has the camera support: http://prime31.com/plugins. You need to pay for it, but it should get the job done.

Failing that, I think you'd have to write your own Android plugin to get data from the camera. This is not terribly difficult, but has a steep learning curve. You can check out these documents as a starting point: http://developer.android.com/reference/android/hardware/Camera.html http://docs.unity3d.com/Documentation/Manual/PluginsForAndroid.html

Comment
Add comment · Show 2 · 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 DeveshPandey · Jun 22, 2014 at 05:57 AM 0
Share

Forum : Unity Forum Assets Store : Capture and Save on Assets store

avatar image DeveshPandey · Sep 13, 2014 at 04:49 AM 0
Share

This plugin is for you.

CameraShot : 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.

Follow this Question

Answers Answers and Comments

16 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

Related Questions

Glow effect - alpha channel ignored to some specific android device 0 Answers

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

pick a photo with the device camera 0 Answers

How can the User import their own images? 1 Answer

Gamecamera not moving when testing with device 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges